diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2017-07-29 13:50:39 +0200 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2017-07-29 13:57:07 +0200 |
commit | 1623726957ce7e9e0c5f3890e07877eb5d32e87b (patch) | |
tree | df38626a7d0859cce739a3e39b26c23e5b6d7b1c /main | |
parent | b344d9354f2d49f9b00755999c25c5f15d52c1f7 (diff) | |
download | aports-1623726957ce7e9e0c5f3890e07877eb5d32e87b.tar.bz2 aports-1623726957ce7e9e0c5f3890e07877eb5d32e87b.tar.xz |
main/gnupg1: modernize APKBUILD
Diffstat (limited to 'main')
-rw-r--r-- | main/gnupg1/APKBUILD | 11 |
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 } |