blob: 9981e9455fda62fd6ce296bb08dd7e54107b23d9 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gnupg1
pkgver=1.4.16
pkgrel=3
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=$pkgver-r$pkgrel"
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="6df73c57d3ece1dd36dc2a7679f00fb0 gnupg-1.4.16.tar.bz2"
sha256sums="7b3b748e6aaa338092a0b26b1730cd9355765b55e3684f58dd70f9a1b00f4a2f gnupg-1.4.16.tar.bz2"
sha512sums="62bccf22211c25cf2ffbf9d35b8f47211e3a71fd92828705d12b23e7d658c9c65c6d845eb5e887e0d855d90a49a5033ecf9de4e22a63e7d3fc052eb1ed33dff4 gnupg-1.4.16.tar.bz2"
|