libgcns: ArchLinux package

This commit is contained in:
giomba 2022-01-08 20:37:35 +01:00
parent b965e20bfd
commit 932bd27549
3 changed files with 36 additions and 3 deletions

33
src/gcns/arch/PKGBUILD Normal file
View File

@ -0,0 +1,33 @@
# Maintainer: Giovan Battista Rolandi <giomba@linux.it>
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
}

View File

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

View File

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