summaryrefslogtreecommitdiffstats
path: root/main/gnupg1/APKBUILD
blob: b7c0c362fcace99da259ce4df28087de3c2af5c6 (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.18
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="54db1be9588b11afbbdd8b82d4ea883a  gnupg-1.4.18.tar.bz2"
sha256sums="b7b5fdda78849955e0cdbc5a085f3a08f8b7fba126c622085debb62def5d6388  gnupg-1.4.18.tar.bz2"
sha512sums="f9619ede8e0d2844774e07fb42359444c5ab8e15565a87f419f76cc3d781940c564f35f429131686fdd7559c5c2edb49506b3c0a1feecbd95438743075be3e63  gnupg-1.4.18.tar.bz2"