summaryrefslogtreecommitdiffstats
path: root/main/gnupg/APKBUILD
blob: ce911abebb1f9558c6415c6d4234d01eb5bd620d (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gnupg
pkgver=2.0.22
pkgrel=0
pkgdesc="GNU Privacy Guard 2 - a PGP replacement tool"
url="http://www.gnupg.org/"
arch="all"
license="GPL"
options="!libc_musl"
depends="pinentry"
makedepends="curl-dev libassuan libksba-dev libgcrypt-dev libgpg-error-dev 
	pth-dev zlib-dev libiconv-dev libassuan-dev"
subpackages="$pkgname-doc"
source="ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-$pkgver.tar.bz2"

build () {
	cd "$srcdir/$pkgname-$pkgver"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-nls \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make DESTDIR="$pkgdir" install
	# compat symlink
	ln -s gpg2 "$pkgdir"/usr/bin/gpg
}
md5sums="ee22e7b4fdbfcb50229c2e6db6db291e  gnupg-2.0.22.tar.bz2"
sha256sums="437d0ab259854359fc48aa8795af80cff4975e559c111c92c03d0bc91408e251  gnupg-2.0.22.tar.bz2"
sha512sums="de534b2f4b8d3c320e97519fe0834bc403c96c6dbb2e24fc24eb68f4ff80374360ef66d83ddc3d6fa096c5199d3782abc5d06b866203378cba130b42802cc855  gnupg-2.0.22.tar.bz2"