39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
# Template file for 'libdom'
|
|
pkgname=libdom
|
|
version=0.4.1
|
|
revision=1
|
|
hostmakedepends="pkg-config perl netsurf-buildsystem"
|
|
makedepends="expat-devel libparserutils-devel libwapcaplet-devel libhubbub-devel"
|
|
short_desc="Implementation of the W3C DOM, written in C"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://www.netsurf-browser.org"
|
|
distfiles="https://download.netsurf-browser.org/libs/releases/libdom-${version}-src.tar.gz"
|
|
checksum=98ee072471e55e208c9878e515c410ad462ca36f87b4afcbecad023f3a2cef4a
|
|
|
|
post_extract() {
|
|
sed -i 's/_BSD_SOURCE/_DEFAULT_SOURCE/g' Makefile
|
|
}
|
|
|
|
do_build() {
|
|
make ${makejobs} COMPONENT_TYPE=lib-shared PREFIX=/usr
|
|
make ${makejobs} COMPONENT_TYPE=lib-static PREFIX=/usr
|
|
}
|
|
|
|
do_install() {
|
|
make COMPONENT_TYPE=lib-shared PREFIX=/usr DESTDIR=${DESTDIR} install
|
|
make COMPONENT_TYPE=lib-static PREFIX=/usr DESTDIR=${DESTDIR} install
|
|
|
|
vlicense COPYING
|
|
}
|
|
|
|
libdom-devel_package() {
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|