diff options
author | Henrik Riomar <henrik.riomar@gmail.com> | 2017-12-30 23:48:41 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-01-02 16:40:44 +0000 |
commit | 5b9d44e4c386b0f0e3af8550e504b164d2093963 (patch) | |
tree | beb1aa8011172d072f34eae5138c5dd262f82044 | |
parent | 83866c90ada28369d39c37d6fd8c8af33df88622 (diff) | |
download | aports-5b9d44e4c386b0f0e3af8550e504b164d2093963.tar.bz2 aports-5b9d44e4c386b0f0e3af8550e504b164d2093963.tar.xz |
main/fakeroot: modernize abuild
-rw-r--r-- | main/fakeroot/APKBUILD | 27 |
1 files changed, 8 insertions, 19 deletions
diff --git a/main/fakeroot/APKBUILD b/main/fakeroot/APKBUILD index eeb40d5ab0..ab7e64af78 100644 --- a/main/fakeroot/APKBUILD +++ b/main/fakeroot/APKBUILD @@ -22,15 +22,6 @@ source="http://ftp.debian.org/debian/pool/main/f/$pkgname/${pkgname}_${pkgver}.o xstatjunk.patch " -prepare() { - cd $startdir/src/$pkgname-$pkgver - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} - check() { cd $startdir/src/$pkgname-$pkgver /bin/bash -c 'make check' @@ -45,23 +36,21 @@ build() { export CFLAGS="-D_STAT_VER=0 $CFLAGS" fi - CONFIG_SHELL=/bin/sh \ - ./bootstrap || return 1 - CONFIG_SHELL=/bin/sh \ - ./configure \ + CONFIG_SHELL=/bin/sh ./bootstrap + CONFIG_SHELL=/bin/sh ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ - --disable-static \ - || return 1 - make || return 1 + --disable-static + + make cd doc - po4a -k 0 --rm-backups --variable "srcdir=../doc/" po4a/po4a.cfg || return 1 + po4a -k 0 --rm-backups --variable "srcdir=../doc/" po4a/po4a.cfg } package() { - cd $startdir/src/$pkgname-$pkgver - make DESTDIR="$pkgdir" install || return 1 + cd "$startdir/src/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install } sha512sums="193478d9ff88ca2ae69fe47b73b6c61aeb2ba3f2a9e7ed5d455022705857c6f34cdcbe2d3f614c4c4c9509368dc78b9a7b7aa56fb3b50bb3309448140abd796a fakeroot_1.22.orig.tar.bz2 |