summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cad6a929591c109c98a8204f7fae890669eed108 (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
# Maintainer: Ivy Foster <ivy.foster@gmail.com>

pkgname='libdom-git'
pkgver=0.3.0.r0.g54c4309
pkgrel=2
pkgdesc='Implementation of the W3C DOM'
url='http://www.netsurf-browser.org/projects/libdom/'
license=('MIT')

depends=('libhubbub-git' 'libwapcaplet-git' 'wget')
makedepends=('git' 'netsurf-buildsystem-git')
provides=('libdom')
conflicts=('libdom')

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

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

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

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

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