diff --git a/lib/cnsparser.pro b/lib/cnsparser.pro index be1a78d..86bfe49 100644 --- a/lib/cnsparser.pro +++ b/lib/cnsparser.pro @@ -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 diff --git a/pkg/tar.xz/.gitignore b/pkg/tar.xz/.gitignore new file mode 100644 index 0000000..d5fbbf8 --- /dev/null +++ b/pkg/tar.xz/.gitignore @@ -0,0 +1,3 @@ +pkg/ +src/ +*.tar.xz diff --git a/pkg/tar.xz/PKGBUILD b/pkg/tar.xz/PKGBUILD new file mode 100644 index 0000000..4558921 --- /dev/null +++ b/pkg/tar.xz/PKGBUILD @@ -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 +} +