aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Titov <oleg.titov@gmail.com>2019-03-21 16:18:29 -0600
committerKevin Daudt <kdaudt@alpinelinux.org>2019-03-22 20:04:38 +0000
commitc88cf8a1149cc83d91f3ff6e694f35c6093a6411 (patch)
treedbf43f9aa6ee1a2ab6f5ec561f48a9ff251f2f42
parent18d52cf2058918908c99e05a2aa33fde9d1d8f34 (diff)
downloadaports-c88cf8a1149cc83d91f3ff6e694f35c6093a6411.tar.gz
aports-c88cf8a1149cc83d91f3ff6e694f35c6093a6411.tar.bz2
aports-c88cf8a1149cc83d91f3ff6e694f35c6093a6411.tar.xz
testing/gumbo-parser: new aport
https://github.com/google/gumbo-parser An HTML5 parsing library in pure C99
-rw-r--r--testing/gumbo-parser/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/gumbo-parser/APKBUILD b/testing/gumbo-parser/APKBUILD
new file mode 100644
index 0000000000..363256bb11
--- /dev/null
+++ b/testing/gumbo-parser/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Oleg Titov <oleg.titov@gmail.com>
+# Maintainer: Oleg Titov <oleg.titov@gmail.com>
+pkgname=gumbo-parser
+pkgver=0.10.1
+pkgrel=0
+pkgdesc="An HTML5 parsing library in pure C99"
+url="https://github.com/google/gumbo-parser"
+arch="all"
+license="Apache-2.0"
+makedepends="libtool m4 automake autoconf gtest gtest-dev"
+subpackages="$pkgname-dev $pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/google/$pkgname/archive/v$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ cd "$buildir"
+ ./autogen.sh
+}
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd "$builddir"
+ make -k check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+
+ install -Dm 644 -t "$pkgdir/usr/share/licenses/$pkgname/" COPYING
+ install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
+}
+
+sha512sums="bb1fb55cd07076ab6a9f38dc14db50397dbdca9a04ace4895dfba8b8cbc09038a96e26070c09c75fa929ada2e815affe233c1e2ecd8afe2aba6201647cf277d1 gumbo-parser-0.10.1.tar.gz"