APKBUILD 1.23 KB
Newer Older
Leonardo Arena's avatar
Leonardo Arena committed
1
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
Leonardo Arena's avatar
Leonardo Arena committed
2
pkgname=cabextract
3 4
pkgver=1.6
pkgrel=0
Leonardo Arena's avatar
Leonardo Arena committed
5 6
pkgdesc="Tool for extracting Microsoft cabinet files"
url="http://www.cabextract.org.uk/"
7
arch="all"
8
license="GPL2+"
Leonardo Arena's avatar
Leonardo Arena committed
9 10 11
subpackages="$pkgname-doc"
depends=""
makedepends=""
12
install=""
13 14
source="http://www.cabextract.org.uk/$pkgname-$pkgver.tar.gz
	"
Leonardo Arena's avatar
Leonardo Arena committed
15

16 17 18
_builddir="$srcdir"/${pkgname}-${pkgver}
prepare() {
	cd $_builddir
19 20 21 22 23 24 25 26
        for i in $source; do
                case $i in
                *.patch)
                        msg "Applying $i"
                        patch -p1 -i "$srcdir"/$i || return 1
                        ;;
                esac
 	done
27 28
}

29
build () {
30
	cd $_builddir
31 32 33 34
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Leonardo Arena's avatar
Leonardo Arena committed
35 36
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
37 38
		--infodir=/usr/share/info \
		|| return 1
Leonardo Arena's avatar
Leonardo Arena committed
39
	make || return 1
40 41 42 43
}

package() {
	cd $_builddir
Leonardo Arena's avatar
Leonardo Arena committed
44 45 46
	make DESTDIR="$pkgdir" install
}

47 48 49
md5sums="ee3ded0b1f84e5c6e3309bb36d701916  cabextract-1.6.tar.gz"
sha256sums="cee661b56555350d26943c5e127fc75dd290b7f75689d5ebc1f04957c4af55fb  cabextract-1.6.tar.gz"
sha512sums="d1c71c0292e3d73d8edbff5f5230b3127c63028f5aba1d0cad968bc945202fb9c0773327affce3d28466068377f029c80735adbabe0929d29b2204dea73738f8  cabextract-1.6.tar.gz"