[pkg] library package creation for ArchLinux
This commit is contained in:
parent
c85b415b2b
commit
ebd0d43fad
|
@ -32,7 +32,6 @@ HEADERS += \
|
|||
Ex.h \
|
||||
read_dati_personali_c.h
|
||||
|
||||
# Default rules for deployment.
|
||||
qnx: target.path = /tmp/$${TARGET}/bin
|
||||
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
||||
!isEmpty(target.path): INSTALLS += target
|
||||
INSTALLS += target
|
||||
|
||||
target.path = /usr/lib
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
pkg/
|
||||
src/
|
||||
*.tar.xz
|
|
@ -0,0 +1,26 @@
|
|||
pkgname=cnsparser
|
||||
pkgver=2019.08
|
||||
pkgrel=1
|
||||
pkgdesc="Parser for Italian national services smart card Carta Nazionale dei Servizi"
|
||||
arch=('x86_64')
|
||||
url="https://git.golem.linux.it/giomba/cnsparser"
|
||||
license=('GPL')
|
||||
#source=
|
||||
#sha256sums=
|
||||
|
||||
prepare() {
|
||||
ln -s ../../../lib "${srcdir}"
|
||||
}
|
||||
|
||||
build() {
|
||||
mkdir -p "${srcdir}/build-lib"
|
||||
cd "${srcdir}/build-lib"
|
||||
qmake ../lib
|
||||
make -j$(nproc)
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/build-lib"
|
||||
make INSTALL_ROOT="${pkgdir}" install
|
||||
}
|
||||
|
Loading…
Reference in New Issue