1 # Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
6 pkgdesc='Implementation of the W3C DOM'
8 url='https://www.netsurf-browser.org/projects/libdom/'
10 depends=(expat 'libhubbub>=0.3.7' 'libwapcaplet>=0.4.3')
11 makedepends=(netsurf-buildsystem)
12 source=("https://download.netsurf-browser.org/libs/releases/$pkgname-$pkgver-src.tar.gz")
13 sha256sums=('98ee072471e55e208c9878e515c410ad462ca36f87b4afcbecad023f3a2cef4a')
16 sed -i 's:_BSD_SOURCE:_DEFAULT_SOURCE:' "$pkgname-$pkgver/Makefile"
20 export CFLAGS="$CFLAGS -shared -fPIC -w"
21 export LDFLAGS="$LDFLAGS -shared -z,now"
22 make -C "$pkgname-$pkgver" \
26 COMPONENT_TYPE="lib-shared"
30 make -C "$pkgname-$pkgver" \
35 COMPONENT_TYPE="lib-shared" \
38 install -Dm644 "$pkgname-$pkgver/COPYING" \
39 "$pkgdir/usr/share/licenses/$pkgname/COPYING"
42 # getver: source.netsurf-browser.org/libdom.git/tree/Makefile