blob: 363256bb11a411cd0bae01f3dcc631b925a0abd2 (
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
|
# 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"
|