aboutsummaryrefslogtreecommitdiffstats
path: root/main/gnupg1
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2017-07-29 13:50:39 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2017-07-29 13:57:07 +0200
commit1623726957ce7e9e0c5f3890e07877eb5d32e87b (patch)
treedf38626a7d0859cce739a3e39b26c23e5b6d7b1c /main/gnupg1
parentb344d9354f2d49f9b00755999c25c5f15d52c1f7 (diff)
downloadaports-1623726957ce7e9e0c5f3890e07877eb5d32e87b.tar.bz2
aports-1623726957ce7e9e0c5f3890e07877eb5d32e87b.tar.xz
main/gnupg1: modernize APKBUILD
Diffstat (limited to 'main/gnupg1')
-rw-r--r--main/gnupg1/APKBUILD11
1 files changed, 7 insertions, 4 deletions
diff --git a/main/gnupg1/APKBUILD b/main/gnupg1/APKBUILD
index d432c3af1e..244df65caf 100644
--- a/main/gnupg1/APKBUILD
+++ b/main/gnupg1/APKBUILD
@@ -14,9 +14,9 @@ provides="gnupg=$pkgver-r$pkgrel"
replaces="gnupg"
source="ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-$pkgver.tar.bz2"
-_builddir="$srcdir/gnupg-$pkgver"
+builddir="$srcdir/gnupg-$pkgver"
prepare() {
- cd "$_builddir"
+ cd "$builddir"
# Fix PIC definitions
sed -i -e 's:PIC:__PIC__:' \
@@ -27,12 +27,15 @@ prepare() {
}
build() {
- cd "$_builddir"
+ cd "$builddir"
export CFLAGS="$CFLAGS -g"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
--disable-nls \
--enable-noexecstack \
|| return 1
@@ -40,7 +43,7 @@ build() {
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make -j1 DESTDIR="$pkgdir" install
}