APKBUILD 853 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 4
pkgver=1.9
pkgrel=0
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

13 14 15
builddir="$srcdir/$pkgname-$pkgver"

# secfixes:
16
#   1.8-r0:
17 18 19 20
#   - CVE-2018-18584

build() {
	cd "$builddir"
21 22 23 24
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Leonardo Arena's avatar
Leonardo Arena committed
25 26
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
27
		--infodir=/usr/share/info \
tmpfile's avatar
tmpfile committed
28 29
		--with-external-libmspack
	make
30 31 32
}

package() {
tmpfile's avatar
tmpfile committed
33
	cd $builddir
Leonardo Arena's avatar
Leonardo Arena committed
34 35 36
	make DESTDIR="$pkgdir" install
}

37
sha512sums="d144c1df9ed8e8c339bcadb3d1be2eb2576bb066e3f75a3480df0d5e81407a633554e4674b3bb43716c0cf33a0f2327e6f798cd6d7825bceefa0ad839fcc3f64  cabextract-1.9.tar.gz"