libgcns: ArchLinux package
This commit is contained in:
parent
b965e20bfd
commit
932bd27549
|
@ -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
|
||||||
|
|
||||||
|
}
|
|
@ -22,6 +22,9 @@
|
||||||
|
|
||||||
#include "gcns.h"
|
#include "gcns.h"
|
||||||
|
|
||||||
|
#include "libopensc/asn1.h"
|
||||||
|
#include "tools/util.h"
|
||||||
|
|
||||||
static int opt_wait = 0;
|
static int opt_wait = 0;
|
||||||
static const char *opt_reader = NULL;
|
static const char *opt_reader = NULL;
|
||||||
static sc_context_t *ctx = NULL;
|
static sc_context_t *ctx = NULL;
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
#ifndef GCNS_H
|
#ifndef GCNS_H
|
||||||
#define GCNS_H
|
#define GCNS_H
|
||||||
|
|
||||||
#include "libopensc/asn1.h"
|
|
||||||
#include "tools/util.h"
|
|
||||||
|
|
||||||
#define GCNS_SUCCESS 0
|
#define GCNS_SUCCESS 0
|
||||||
#define GCNS_INIT -1001
|
#define GCNS_INIT -1001
|
||||||
#define GCNS_READ_PERSONAL_DATA -1002
|
#define GCNS_READ_PERSONAL_DATA -1002
|
||||||
|
|
Loading…
Reference in New Issue