From 4b2216ae4eb84eceedf08c48b166389f703ac06e Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 19 Mar 2012 15:49:41 +0000 Subject: main/gpgme: moved from testing --- main/gpgme/APKBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 main/gpgme/APKBUILD (limited to 'main/gpgme') diff --git a/main/gpgme/APKBUILD b/main/gpgme/APKBUILD new file mode 100644 index 000000000..bda11b1ff --- /dev/null +++ b/main/gpgme/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: William Pitcock +# Maintainer: Natanael Copa +pkgname=gpgme +pkgver=1.3.1 +pkgrel=0 +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" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="ftp://ftp.gnupg.org/gcrypt/gpgme/gpgme-$pkgver.tar.bz2" + +_builddir="$srcdir"/gpgme-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm "$pkgdir"/usr/lib/*.la || return 1 +} + +md5sums="90afa8436ce2b2683c001c824bd22601 gpgme-1.3.1.tar.bz2" -- cgit v1.2.3