summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/gpgme/APKBUILD12
1 files changed, 10 insertions, 2 deletions
diff --git a/user/gpgme/APKBUILD b/user/gpgme/APKBUILD
index e508fc0cf..01f7e6030 100644
--- a/user/gpgme/APKBUILD
+++ b/user/gpgme/APKBUILD
@@ -10,8 +10,8 @@ arch="all"
license="(LGPL-3.0+ OR GPL-2.0+) AND LGPL-2.1+ AND MIT AND GPL-3.0+"
depends="gnupg"
depends_dev="libgpg-error-dev libassuan-dev qt5-qtbase-dev"
-makedepends="$depends_dev doxygen"
-subpackages="$pkgname-dev $pkgname-doc gpgmepp qgpgme"
+makedepends="$depends_dev doxygen python3-dev"
+subpackages="$pkgname-dev $pkgname-doc gpgmepp qgpgme py3-gpg:_py"
source="https://gnupg.org/ftp/gcrypt/$pkgname/$pkgname-$pkgver.tar.bz2
1.12.0-fix-t-tofuinfo.patch"
@@ -26,6 +26,7 @@ build() {
--infodir=/usr/share/info \
--localstatedir=/var
make
+ make -C lang/python
}
check() {
@@ -50,6 +51,13 @@ gpgmepp() {
mv "$pkgdir"/usr/lib/libgpgmepp.so.* "$subpkgdir"/usr/lib/
}
+_py() {
+ pkgdesc="$pkgdesc (Python bindings)"
+ depends="$pkgname=$pkgver-r$pkgrel python3"
+
+ mkdir -p "$subpkgdir/usr/lib/"
+ mv "$pkgdir/usr/lib/python"* "$subpkgdir/usr/lib/"
+}
sha512sums="c228b3df28377df882be536ada56dc9c73150048a58e591aa4495f89c854af95820152cd60139840f994c249e9c7df50d8b89eb9d6dc4ce02aa80bbfebcdd014 gpgme-1.12.0.tar.bz2
c8748651021a6ea670329cffb9565b905272b092315e77dc6fa9fa23890f8a55c2159edbfa026e8af961f2ff0c0d524dc8332a2e9a24fce2b37ac7cc4bb88cb3 1.12.0-fix-t-tofuinfo.patch"