diff options
author | tmpfile <tmpfile@users.noreply.github.com> | 2017-05-14 12:13:56 -0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-06-09 10:22:05 +0000 |
commit | 24f8d46fd897ef934befb46802420a52dee295e2 (patch) | |
tree | f1b9bcbe564fd73ddf64c43694fbe8177f45e333 | |
parent | 2e7ec437fec45f41784725703429ccf53f7eeef2 (diff) | |
download | aports-24f8d46fd897ef934befb46802420a52dee295e2.tar.bz2 aports-24f8d46fd897ef934befb46802420a52dee295e2.tar.xz |
main/cabextract: modernize abuild
-rw-r--r-- | main/cabextract/APKBUILD | 30 |
1 files changed, 6 insertions, 24 deletions
diff --git a/main/cabextract/APKBUILD b/main/cabextract/APKBUILD index 02ad29a666..e2c9032d74 100644 --- a/main/cabextract/APKBUILD +++ b/main/cabextract/APKBUILD @@ -7,27 +7,12 @@ url="http://www.cabextract.org.uk/" arch="all" license="GPL2+" subpackages="$pkgname-doc" -depends="" makedepends="libmspack-dev" -install="" -source="http://www.cabextract.org.uk/$pkgname-$pkgver.tar.gz - " - -_builddir="$srcdir"/${pkgname}-${pkgver} -prepare() { - cd $_builddir - for i in $source; do - case $i in - *.patch) - msg "Applying $i" - patch -p1 -i "$srcdir"/$i || return 1 - ;; - esac - done -} +source="http://www.cabextract.org.uk/$pkgname-$pkgver.tar.gz" +builddir="$srcdir"/${pkgname}-${pkgver} build () { - cd $_builddir + cd $builddir ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -35,16 +20,13 @@ build () { --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --with-external-libmspack \ - || return 1 - make || return 1 + --with-external-libmspack + make } package() { - cd $_builddir + cd $builddir make DESTDIR="$pkgdir" install } -md5sums="ee3ded0b1f84e5c6e3309bb36d701916 cabextract-1.6.tar.gz" -sha256sums="cee661b56555350d26943c5e127fc75dd290b7f75689d5ebc1f04957c4af55fb cabextract-1.6.tar.gz" sha512sums="d1c71c0292e3d73d8edbff5f5230b3127c63028f5aba1d0cad968bc945202fb9c0773327affce3d28466068377f029c80735adbabe0929d29b2204dea73738f8 cabextract-1.6.tar.gz" |