blob: cf9bb482eee4a5748774fb510b97ab269f31b523 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Contributor:
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gpgme
pkgver=1.13.0
pkgrel=1
pkgdesc="gnupg made easy"
url="https://www.gnupg.org/related_software/gpgme/"
arch="all"
license="LGPL-2.1-or-later GPL-3.0-or-later"
depends="gnupg"
depends_dev="libgpg-error-dev libassuan-dev"
makedepends="$depends_dev python3-dev py3-setuptools swig"
subpackages="$pkgname-dev $pkgname-doc gpgmepp py3-gpgme:py3"
source="https://www.gnupg.org/ftp/gcrypt/$pkgname/$pkgname-$pkgver.tar.bz2
0001-Disable-failing-tests-x86-armhf.patch
"
builddir="$srcdir"/gpgme-$pkgver
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--enable-languages="cl cpp python"
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
check() {
cd "$builddir"
make check
}
gpgmepp() {
pkgdesc="C++ bindings for GPGME"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libgpgmepp.so.* "$subpkgdir"/usr/lib/
}
py3() {
pkgdesc="Python 3 bindings for $pkgname"
depends="$depends $pkgname python3"
mkdir -p "$subpkgdir"/usr/lib/
mv "$pkgdir"/usr/lib/python3* "$subpkgdir"/usr/lib/
}
sha512sums="47a7a67dcc6d111cddd805d288d42e870948114a6dc09ce0675ad8b3d1580bbc2a683e1e70cb2f416919cf2129c72a9ff30e2e3b9527809d04e863cc1f87267b gpgme-1.13.0.tar.bz2
9a461042175e8771b685967059c8760050094925a4a577b62d2a4a3c5a4c135e857aa812f5cf6019241e73c941837ad449a9c51b41fd661957026b0ae9c1198c 0001-Disable-failing-tests-x86-armhf.patch"
|