diff --git a/src/gcns/arch/PKGBUILD b/src/gcns/arch/PKGBUILD new file mode 100644 index 00000000..f678e8f4 --- /dev/null +++ b/src/gcns/arch/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Giovan Battista Rolandi + +pkgname=gcns +pkgver=1.0 +pkgrel=1 +pkgdesc='Tools for Italian healthcare smart card' +arch=('x86_64') +url='https://git.golem.linux.it/giomba/opensc' +license=('LGPL') +depends=('opensc') +source=('git+https://git.golem.linux.it/giomba/opensc#branch=golem/tessera-sanitaria') +sha256sums=('SKIP') + +build() { + cd opensc + + ./bootstrap + ./configure + make -j$(nproc) + cd src/gcns + + mkdir -p build + cd build + cmake .. + make -j$(nproc) + +} + +package() { + cd opensc/src/gcns/build + make DESTDIR=$pkgdir install + +} diff --git a/src/gcns/gcns.c b/src/gcns/gcns.c index 37738260..5711dc13 100644 --- a/src/gcns/gcns.c +++ b/src/gcns/gcns.c @@ -22,6 +22,9 @@ #include "gcns.h" +#include "libopensc/asn1.h" +#include "tools/util.h" + static int opt_wait = 0; static const char *opt_reader = NULL; static sc_context_t *ctx = NULL; diff --git a/src/gcns/gcns.h b/src/gcns/gcns.h index 1a8291cf..ac38b375 100644 --- a/src/gcns/gcns.h +++ b/src/gcns/gcns.h @@ -1,9 +1,6 @@ #ifndef GCNS_H #define GCNS_H -#include "libopensc/asn1.h" -#include "tools/util.h" - #define GCNS_SUCCESS 0 #define GCNS_INIT -1001 #define GCNS_READ_PERSONAL_DATA -1002