pmaports/temp/gpgme/APKBUILD
2018-11-27 07:47:11 +01:00

59 lines
1.5 KiB
Text

# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gpgme
pkgver=1.10.0
pkgrel=1
pkgdesc="gnupg made easy"
url="http://www.gnupg.org/related_software/gpgme/"
arch="all"
license="GPL"
depends="gnupg"
depends_dev="libgpg-error-dev libassuan-dev qt5-qtbase-dev"
makedepends="$depends_dev"
subpackages="$pkgname-dev $pkgname-doc gpgmepp qgpgme"
source="ftp://ftp.gnupg.org/gcrypt/$pkgname/$pkgname-$pkgver.tar.bz2
fix-bashism.patch"
builddir="$srcdir"/gpgme-$pkgver
options="!check"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
cd lang/qt
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/
}
qgpgme() {
pkgdesc="Qt bindings for GPGME"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libqgpgme.so* "$subpkgdir"/usr/lib/
}
sha512sums="8ffa348ef4775ed3209486444d54411e28c9a0ff1d7a4315feb0b2856ccd5d110b219100ea41262ca0016af69a1936d79fee0eadf2599c7c5bbeed05d11f7ab5 gpgme-1.10.0.tar.bz2
6d83139277026d280fa08827623196c90c6158ecb9a39b58f58f3b4211d8d1e9694aa255eb71a08e40028776f6cc9df9b8f6a71d918065479504de14619a11bd fix-bashism.patch"