aboutsummaryrefslogtreecommitdiffstats
path: root/main/gnupg1/APKBUILD
blob: 4e95819cd84b6659f24d6dc71b798980e2d62f03 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gnupg1
pkgver=1.4.21
pkgrel=0
pkgdesc="GNU Privacy Guard 1 - a PGP replacement tool"
url="http://www.gnupg.org/"
arch="all"
license="GPL"
depends="pinentry"
makedepends="curl-dev libassuan libksba-dev libgcrypt-dev libgpg-error-dev 
	zlib-dev libassuan-dev"
subpackages="$pkgname-doc"
provides="gnupg=$pkgver-r$pkgrel"
replaces="gnupg"
source="ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-$pkgver.tar.bz2"

_builddir="$srcdir/gnupg-$pkgver"
prepare() {
	cd "$_builddir"

	# Fix PIC definitions
	sed -i -e 's:PIC:__PIC__:' \
		mpi/i386/mpih-add1.S \
		mpi/i386/mpih-sub1.S \
		intl/relocatable.c \
		|| return 1
}

build() {
	cd "$_builddir"
	export CFLAGS="$CFLAGS -g"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-nls \
		--enable-noexecstack \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make -j1 DESTDIR="$pkgdir" install
}

doc() {
	default_doc
	provides="gnupg-doc=$pkgver-r$pkgrel"
}

md5sums="9bdeabf3c0f87ff21cb3f9216efdd01d  gnupg-1.4.21.tar.bz2"
sha256sums="6b47a3100c857dcab3c60e6152e56a997f2c7862c1b8b2b25adf3884a1ae2276  gnupg-1.4.21.tar.bz2"
sha512sums="619e0fbc10310c7e55d129027e2945791fe91a0884b1d6f53acb4b2e380d1c6e71d1a516a59876182c5c70a4227d44a74ceda018c343b5291fa9a5d6de77c984  gnupg-1.4.21.tar.bz2"