aboutsummaryrefslogtreecommitdiffstats
path: root/main/gpgme/APKBUILD
blob: 24ac28a40fb62cff4db71636f2ba02c6b3a0d570 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gpgme
pkgver=1.4.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="07f1c0eb6596a94efa3ffb75e74bfbba  gpgme-1.4.1.tar.bz2"
sha256sums="7ab63e5086ebe4cfe7f78face1bb059a7a60da586b1e5c6a77bedcd6d04019b8  gpgme-1.4.1.tar.bz2"
sha512sums="80ac5739ad262351e342fc2c13ae0c864d19d60505308befd80ffae69751b90df6f46d2423b2f3923898617c5bf88564bbaa03d699c56fe2f72539ac1afe1185  gpgme-1.4.1.tar.bz2"