aboutsummaryrefslogtreecommitdiffstats
path: root/community/libmspack/APKBUILD
blob: 470ed2aba482e8385cbcc8edc0e036e9b204f5cf (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
47
48
49
50
51
52
53
54
55
56
57
58
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libmspack
pkgver=0.10.1_alpha
_ver=${pkgver/_/}
pkgrel=0
pkgdesc="Library for Microsoft CAB compression formats"
url="https://www.cabextract.org.uk/libmspack/"
arch="all"
license="LGPL-2.1-only"
subpackages="$pkgname-dev"
source="https://www.cabextract.org.uk/libmspack/libmspack-$_ver.tar.gz"

builddir="$srcdir"/libmspack-$_ver

# secfixes:
#   0.10.1_alpha-r0:
#     - CVE-2019-1010305
#   0.8_alpha-r0:
#     - CVE-2018-18584
#     - CVE-2018-18585
#     - CVE-2018-18586
#   0.7.1_alpha-r0:
#     - CVE-2018-14679
#     - CVE-2018-14680
#     - CVE-2018-14681
#     - CVE-2018-14682
#   0.5_alpha-r1:
#     - CVE-2017-6419
#     - CVE-2017-11423

prepare() {
	default_prepare
	sed -i "s/@VERSION@/$pkgver/" libmspack.pc.in
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-static
	# parallel build workaround
	make libmspack.la libmscabd.la libmschmd.la
	make
}

check() {
	make check
}

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

sha512sums="a7b5f7caa49190c5021f3e768b92f2e51cc0ce685c9ab6ed6fb36de885c73231b58d47a8a3b5c5aa5c9ac56c25c500eb683d84dbf11f09f97f6cb4fff5adc245  libmspack-0.10.1alpha.tar.gz"