Commit 24f8d46f authored by tmpfile's avatar tmpfile Committed by Natanael Copa
Browse files

main/cabextract: modernize abuild

parent 2e7ec437
......@@ -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"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment