aboutsummaryrefslogtreecommitdiffstats
path: root/community/cabextract/APKBUILD
blob: 4f14b5962cef56b10e8c0ec988baf87c6bb67c42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=cabextract
pkgver=1.11
pkgrel=1
pkgdesc="Tool for extracting Microsoft cabinet files"
url="https://www.cabextract.org.uk/"
arch="all"
license="GPL-2.0-or-later"
makedepends="libmspack-dev"
checkdepends="findutils"
subpackages="$pkgname-doc"
source="https://www.cabextract.org.uk/cabextract-$pkgver.tar.gz
	musl-test.patch
	"

# secfixes:
#   1.8-r0:
#     - CVE-2018-18584

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--with-external-libmspack
	make
}

check() {
	make check || {
		cat test-suite.log
		return 1
	}
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
416bdc5a889c3986b2a5d6ecb8526a69f2d85c34f4856da43951271ff4f31013e4197c56ea5f6b05061b511b980d5a65cb34b9b859d3013c1dbcbb89d43114f9  cabextract-1.11.tar.gz
9a20f1c9dc8624086c2fbbca66bc162730337ad9a3efc35b66cfb09d11e963d37849556c0efdcef9bc2abb8a31de45c11c6c245df3d6c580cba6a70ff2f1255c  musl-test.patch
"