APKBUILD 809 Bytes
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
pkgver=1.6
4
pkgrel=1
Leonardo Arena's avatar
Leonardo Arena committed
5
pkgdesc="Tool for extracting Microsoft cabinet files"
6
url="https://www.cabextract.org.uk/"
7
arch="all"
8
license="GPL2+"
Leonardo Arena's avatar
Leonardo Arena committed
9
subpackages="$pkgname-doc"
10
makedepends="libmspack-dev"
11
source="https://www.cabextract.org.uk/$pkgname-$pkgver.tar.gz"
12

tmpfile's avatar
tmpfile committed
13
builddir="$srcdir"/${pkgname}-${pkgver}
14
build () {
tmpfile's avatar
tmpfile committed
15
	cd $builddir
16 17 18 19
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Leonardo Arena's avatar
Leonardo Arena committed
20 21
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
22
		--infodir=/usr/share/info \
tmpfile's avatar
tmpfile committed
23 24
		--with-external-libmspack
	make
25 26 27
}

package() {
tmpfile's avatar
tmpfile committed
28
	cd $builddir
Leonardo Arena's avatar
Leonardo Arena committed
29 30 31
	make DESTDIR="$pkgdir" install
}

32
sha512sums="d1c71c0292e3d73d8edbff5f5230b3127c63028f5aba1d0cad968bc945202fb9c0773327affce3d28466068377f029c80735adbabe0929d29b2204dea73738f8  cabextract-1.6.tar.gz"