summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b0bdb647f47d3024e42ca4435fa966c5c4c57fbc (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
# Maintainer: ROllerozxa <temporaryemail4meh [gee mail]>
# Contributor: Ivy Foster <ivy.foster@gmail.com>
# Contributor: Alexander Rodseth <rodseth@gmail.com>
# Contributor: Torjus Haakestad <torjuspuz@gmail.com>
pkgname='libhubbub-git'
pkgver=0.3.7.r19.g873ed6e
pkgrel=1
pkgdesc='HTML5 compliant parsing library'
url='http://www.netsurf-browser.org/projects/hubbub/'
license=('MIT')

depends=('libparserutils-git' 'libxslt' 'wget')
makedepends=('git' 'netsurf-buildsystem-git' 'gperf')
provides=('libhubbub')
conflicts=('libhubbub')

arch=('x86_64' 'i686')
source=('git://git.netsurf-browser.org/libhubbub.git')
sha256sums=('SKIP')

pkgver() {
	cd libhubbub
	git describe --long | sed 's:release/::; s:-\([0-9]\+\)-:.r\1.:'
}

prepare() {
	sed 's:-D_BSD_SOURCE::' -i libhubbub/Makefile
}

build() {
	make -C libhubbub PREFIX=/usr INCLUDEDIR=include \
		LIBDIR=lib COMPONENT_TYPE=lib-shared
}

package() {
	cd libhubbub
	make DESTDIR="$pkgdir" PREFIX=/usr INCLUDEDIR=include \
		LIBDIR=lib COMPONENT_TYPE=lib-shared test install
	install -Dm644 COPYING "$pkgdir/usr/share/licenses/netsurf/libhubbub"
}