summaryrefslogtreecommitdiff
path: root/system/expat/APKBUILD
blob: 788bf71f3cf03c1966107a1416d5fbbc6db91789 (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: A. Wilcox <awilfox@adelielinux.org>
pkgname=expat
pkgver=2.4.1
pkgrel=0
pkgdesc="XML parser library written in C"
url="https://libexpat.github.io/"
arch="all"
license="MIT"
depends=""
checkdepends="bash"
makedepends=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://downloads.sourceforge.net/project/expat/expat/$pkgver/expat-$pkgver.tar.bz2"

# secfixes:
#   2.4.1-r0:
#     - CVE-2013-0340
#   2.2.1-r0:
#     - CVE-2016-9063
#   2.2.0-r1:
#     - CVE-2017-9233
#   2.2.7-r1:
#     - CVE-2019-15903

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man
	make
}

check() {
	make check
}

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

sha512sums="b24e19c3f91e0f3d1ad3b08a810b8874e272ddfc6d4fd8f79c14c13eddf410648343b9f69fba2ce165be46c143cecf8d66cf446b4930da42f92def555ecd3408  expat-2.4.1.tar.bz2"