[pkg] library package creation for ArchLinux

This commit is contained in:
giomba 2019-08-17 11:07:26 +02:00
parent c85b415b2b
commit ebd0d43fad
3 changed files with 32 additions and 4 deletions

View File

@ -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

3
pkg/tar.xz/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
pkg/
src/
*.tar.xz

26
pkg/tar.xz/PKGBUILD Normal file
View File

@ -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
}