aboutsummaryrefslogtreecommitdiffstats
path: root/main/gnupg1/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/gnupg1/APKBUILD')
-rw-r--r--main/gnupg1/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/main/gnupg1/APKBUILD b/main/gnupg1/APKBUILD
new file mode 100644
index 0000000000..f7ffe6e170
--- /dev/null
+++ b/main/gnupg1/APKBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=gnupg1
+pkgver=1.4.16
+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 libiconv-dev libassuan-dev"
+subpackages="$pkgname-doc"
+provides="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
+}
+
+md5sums="6df73c57d3ece1dd36dc2a7679f00fb0 gnupg-1.4.16.tar.bz2"
+sha256sums="7b3b748e6aaa338092a0b26b1730cd9355765b55e3684f58dd70f9a1b00f4a2f gnupg-1.4.16.tar.bz2"
+sha512sums="62bccf22211c25cf2ffbf9d35b8f47211e3a71fd92828705d12b23e7d658c9c65c6d845eb5e887e0d855d90a49a5033ecf9de4e22a63e7d3fc052eb1ed33dff4 gnupg-1.4.16.tar.bz2"