diff options
Diffstat (limited to 'main/gnupg/APKBUILD')
-rw-r--r-- | main/gnupg/APKBUILD | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/main/gnupg/APKBUILD b/main/gnupg/APKBUILD index b2a7978e62..7a9620b523 100644 --- a/main/gnupg/APKBUILD +++ b/main/gnupg/APKBUILD @@ -3,7 +3,7 @@ pkgname=gnupg pkgver=2.2.6 _ver=${pkgver/_beta/-beta} -pkgrel=0 +pkgrel=2 pkgdesc="GNU Privacy Guard 2 - a PGP replacement tool" url="https://www.gnupg.org/" arch="all" @@ -12,11 +12,13 @@ options="" depends="pinentry" makedepends="gnutls-dev libksba-dev libgcrypt-dev libgpg-error-dev npth-dev zlib-dev libassuan-dev openldap-dev bzip2-dev - sqlite-dev" -subpackages="$pkgname-doc" + sqlite-dev libusb-dev" +subpackages="$pkgname-doc $pkgname-scdaemon" source="https://gnupg.org/ftp/gcrypt/$pkgname/$pkgname-$_ver.tar.bz2 0001-Include-sys-select.h-for-FD_SETSIZE.patch - fix-i18n.patch" + fix-i18n.patch + 60-scdaemon.rules" +install="$pkgname-scdaemon.pre-install" builddir="$srcdir"/$pkgname-$_ver build() { @@ -31,7 +33,9 @@ build() { --localstatedir=/var \ --disable-nls \ --enable-bzip2 \ - --enable-tofu + --enable-tofu \ + --enable-scdaemon \ + --enable-ccid-driver make } @@ -49,6 +53,19 @@ package() { ln -s gpgv "$pkgdir"/usr/bin/gpgv2 } +scdaemon() { + pkgdesc="GNU Privacy Guard 2 - smart card support" + depends="gnupg" + + mkdir -p "${subpkgdir}/usr/libexec" + mkdir -p "${subpkgdir}/lib/udev/rules.d" + + install -Dm644 -t "${subpkgdir}/lib/udev/rules.d/" \ + "${srcdir}/60-scdaemon.rules" + mv "${pkgdir}/usr/libexec/scdaemon" "${subpkgdir}/usr/libexec/" +} + sha512sums="ad0861c86c1886f701ae05e7cd439449cf0684a7bf461ca2b729c5e93833ee36f8438cd4d7f73a4c60e57060f3d8f4890a809b2bbc31b083f9f61d2f66ccacc4 gnupg-2.2.6.tar.bz2 c6cc4595081c5b025913fa3ebecf0dff87a84f3c669e3fef106e4fa040f1d4314ee52dd4c0e0002b213034fb0810221cfdd0033eae5349b6e3978f05d08bcac7 0001-Include-sys-select.h-for-FD_SETSIZE.patch -b19a44dacf061dd02b439ab8bd820e3c721aab77168f705f5ce65661f26527b03ea88eec16d78486a633c474120589ec8736692ebff57ab9b95f52f57190ba6b fix-i18n.patch" +b19a44dacf061dd02b439ab8bd820e3c721aab77168f705f5ce65661f26527b03ea88eec16d78486a633c474120589ec8736692ebff57ab9b95f52f57190ba6b fix-i18n.patch +4bfb9742279c2d1c872d63cd4bcb01f6a2a13d94618eff954d3a37451fa870a9bb29687330854ee47e8876d6e60dc81cb2569c3931beaefacda33db23c464402 60-scdaemon.rules" |