archrelease: copy trunk to community-any
[ArchLinux/community.git] / libdom / trunk / PKGBUILD
blobb2ea1c7d67ec2a337cff3a31fa3ba99057d4f47b
1 # Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
3 pkgname=libdom
4 pkgver=0.4.1
5 pkgrel=2
6 pkgdesc='Implementation of the W3C DOM'
7 arch=(x86_64)
8 url='https://www.netsurf-browser.org/projects/libdom/'
9 license=(MIT)
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')
15 prepare() {
16   sed -i 's:_BSD_SOURCE:_DEFAULT_SOURCE:' "$pkgname-$pkgver/Makefile"
19 build() {
20   export CFLAGS="$CFLAGS -shared -fPIC -w"
21   export LDFLAGS="$LDFLAGS -shared -z,now"
22   make -C "$pkgname-$pkgver" \
23     INCLUDEDIR=include \
24     LIBDIR=lib \
25     PREFIX=/usr \
26     COMPONENT_TYPE="lib-shared"
29 package() {
30   make -C "$pkgname-$pkgver" \
31     DESTDIR="$pkgdir" \
32     INCLUDEDIR=include \
33     LIBDIR=lib \
34     PREFIX=/usr \
35     COMPONENT_TYPE="lib-shared" \
36     install
38   install -Dm644 "$pkgname-$pkgver/COPYING" \
39     "$pkgdir/usr/share/licenses/$pkgname/COPYING"
42 # getver: source.netsurf-browser.org/libdom.git/tree/Makefile
43 # vim: ts=2 sw=2 et: