APKBUILD 1.3 KB
Newer Older
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gnupg1
Natanael Copa's avatar
Natanael Copa committed
3 4
pkgver=1.4.18
pkgrel=0
5 6 7 8 9 10
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 
11
	zlib-dev libassuan-dev"
12
subpackages="$pkgname-doc"
13
provides="gnupg=$pkgver-r$pkgrel"
Natanael Copa's avatar
Natanael Copa committed
14
replaces="gnupg"
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
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
}

47 48 49 50 51
doc() {
	default_doc
	provides="gnupg-doc=$pkgver-r$pkgrel"
}

Natanael Copa's avatar
Natanael Copa committed
52 53 54
md5sums="54db1be9588b11afbbdd8b82d4ea883a  gnupg-1.4.18.tar.bz2"
sha256sums="b7b5fdda78849955e0cdbc5a085f3a08f8b7fba126c622085debb62def5d6388  gnupg-1.4.18.tar.bz2"
sha512sums="f9619ede8e0d2844774e07fb42359444c5ab8e15565a87f419f76cc3d781940c564f35f429131686fdd7559c5c2edb49506b3c0a1feecbd95438743075be3e63  gnupg-1.4.18.tar.bz2"