blob: 3c6601d9cf49f2b71f4fa86f3b7ac01929a1cd53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Maintainer: Jonas Witschel <diabonas@archlinux.org>
pkgname=gnupg-pkcs11-scd
pkgver=0.11.0
pkgrel=1
pkgdesc='Smart-card daemon to enable the use of PKCS#11 tokens with GnuPG'
arch=('x86_64')
url='http://gnupg-pkcs11.sourceforge.net/'
license=('BSD')
depends=('libassuan' 'libgcrypt' 'libgpg-error' 'openssl' 'pkcs11-helper')
source=("https://github.com/alonbl/$pkgname/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.bz2"
'gnupg-pkcs11-scd.sysusers.conf')
sha512sums=('6f8da7e4166dc37aa98f424a470ea6f0678cfd5b02ac7b8e11516ea0a4bda0d84855b20fde166a5406047e8251b77f1544d7b362f72016bb5ee0a13ba040a40c'
'e150462b8aa12f2bd30f17245f9a2ac8880029641a5a74ef3d9a7bc0618845898af4804b987e78f52a5925e346c05539fb3476fe4b64abbd86fa8ceb9271fdda')
build() {
cd "$pkgname-$pkgver"
./configure --prefix=/usr --enable-proxy --with-proxy-socket=/run/gnupg-pkcs11-scd-proxy/cmd \
--with-proxy-user=gnupg-pkcs11-scd-proxy --with-proxy-user-group=gnupg-pkcs11-scd-proxy \
--with-proxy-group=gnupg-pkcs11 LIBGPG_ERROR_LIBS=-lgpg-error
make
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
install -Dm644 "gnupg-pkcs11-scd-proxy/gnupg-pkcs11-scd-proxy.service" -t "$pkgdir/usr/lib/systemd/system"
install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname"
install -Dm644 "$srcdir/gnupg-pkcs11-scd.sysusers.conf" "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
}
|