summaryrefslogtreecommitdiff
path: root/system/expat/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'system/expat/APKBUILD')
-rw-r--r--system/expat/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/system/expat/APKBUILD b/system/expat/APKBUILD
new file mode 100644
index 000000000..8286b0db9
--- /dev/null
+++ b/system/expat/APKBUILD
@@ -0,0 +1,38 @@
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=expat
+pkgver=2.2.5
+pkgrel=0
+pkgdesc="An XML Parser library written in C"
+url="https://libexpat.github.io/"
+arch="all"
+license="MIT"
+checkdepends="bash"
+source="http://downloads.sourceforge.net/project/expat/expat/$pkgver/expat-$pkgver.tar.bz2"
+subpackages="$pkgname-dev $pkgname-doc"
+builddir="$srcdir/$pkgname-$pkgver"
+
+# secfixes:
+# 2.2.0-r1:
+# - CVE-2017-9233
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --mandir=/usr/share/man
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir/" install
+}
+
+sha512sums="8226970a7e5d2b8d7818081758ca59bb6ce2d655feaa9d3a92481629000b73fde4782f50343d58ec4e1cebe75649e1980f636775a731d8aa4b55ceb843d9f637 expat-2.2.5.tar.bz2"