aboutsummaryrefslogtreecommitdiffstats
path: root/main/cabextract/APKBUILD
blob: 9ee0e853cd5ac7aa804422c91df2e2b257ebc79d (plain) (blame)
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
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=cabextract
pkgver=1.9.1
pkgrel=0
pkgdesc="Tool for extracting Microsoft cabinet files"
url="https://www.cabextract.org.uk/"
arch="all"
license="GPL-2.0-or-later"
subpackages="$pkgname-doc"
makedepends="libmspack-dev"
source="https://www.cabextract.org.uk/$pkgname-$pkgver.tar.gz"

builddir="$srcdir/$pkgname-$pkgver"

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

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

check() {
	cd "$builddir"
	./cabextract --version > /dev/null
}

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

sha512sums="c354a4b20a222b40813f01baf8311c9a76611da427f9f44e977a3fd09508e24a18b486e3eef889a9debdca459f1b0c28d5d25429ccd555d3a2e4ff92d91cec14  cabextract-1.9.1.tar.gz"