aboutsummaryrefslogtreecommitdiffstats
path: root/main/patch
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2018-02-11 15:24:02 +0100
committerSören Tempel <soeren+git@soeren-tempel.net>2018-02-11 15:24:02 +0100
commitc1a9197d96af3588748a7641d1e3c9e6bbb85765 (patch)
treec0967fcb1f7256101e781f6c48e2d9f3ab928589 /main/patch
parent0579ce4793a8c38df3561b5e4867fa3eeb138aaa (diff)
downloadaports-c1a9197d96af3588748a7641d1e3c9e6bbb85765.tar.bz2
aports-c1a9197d96af3588748a7641d1e3c9e6bbb85765.tar.xz
main/patch: modernize APKBUILD
Diffstat (limited to 'main/patch')
-rw-r--r--main/patch/APKBUILD11
1 files changed, 5 insertions, 6 deletions
diff --git a/main/patch/APKBUILD b/main/patch/APKBUILD
index 8b21021aad..a20ea4560c 100644
--- a/main/patch/APKBUILD
+++ b/main/patch/APKBUILD
@@ -13,10 +13,10 @@ makedepends=""
install=""
subpackages="$pkgname-doc"
source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"
+builddir="$srcdir"/$pkgname-$pkgver
-_builddir="$srcdir"/$pkgname-$pkgver
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -24,15 +24,14 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
- --disable-nls \
- || return 1
- make || return 1
+ --disable-nls
+ make
}
package() {
make prefix="$pkgdir"/usr \
mandir="$pkgdir"/usr/share/man \
- -C "$_builddir" install || return 1
+ -C "$builddir" install
rm -f "$pkgdir"/usr/lib/charset.alias
rmdir -p "$pkgdir"/usr/lib 2>/dev/null || true