aboutsummaryrefslogtreecommitdiffstats
path: root/main/autoconf
diff options
context:
space:
mode:
authortmpfile <tmpfile@users.noreply.github.com>2017-05-14 13:28:52 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2017-06-09 13:11:24 +0000
commit8bca3c6b8441f17559d220f7fd77ef813dc933fa (patch)
tree8fc0d72b894a9454fa3985a3b9a2f5f26f4740ac /main/autoconf
parent9c2d3b2f6b2eb35dc349ef1eeafac6bedef96ec0 (diff)
downloadaports-8bca3c6b8441f17559d220f7fd77ef813dc933fa.tar.bz2
aports-8bca3c6b8441f17559d220f7fd77ef813dc933fa.tar.xz
main/autoconf: modernize abuild
Diffstat (limited to 'main/autoconf')
-rw-r--r--main/autoconf/APKBUILD27
1 files changed, 9 insertions, 18 deletions
diff --git a/main/autoconf/APKBUILD b/main/autoconf/APKBUILD
index 6f568adb62..3883f7b87e 100644
--- a/main/autoconf/APKBUILD
+++ b/main/autoconf/APKBUILD
@@ -8,35 +8,26 @@ license="GPL2+"
url="http://www.gnu.org/software/autoconf"
depends="m4 perl"
subpackages="$pkgname-doc"
-source="ftp://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.gz
- "
+source="ftp://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.gz"
-_builddir="$srcdir"/$pkgname-$pkgver
+builddir="$srcdir"/$pkgname-$pkgver
prepare() {
- cd "$_builddir"
- update_config_sub || return 1
- for i in $source; do
- case $i in
- *.patch)
- msg "Applying $i"
- patch -p1 -i "$srcdir"/$i || return 1
- esac
- done
+ update_config_sub
+ default_prepare
}
build() {
- cd "$_builddir"
+ cd "$builddir"
M4=/usr/bin/m4 ./configure \
--build=$CBUILD \
--host=$CHOST \
- --prefix=/usr \
- || return 1
- make || return 1
+ --prefix=/usr
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
rm -f "$pkgdir"/usr/share/info/dir
# conflict with bintuils
rm -f "$pkgdir"/usr/share/info/standards.info