void-packages/srcpkgs/libdom/template

40 lines
1.1 KiB
Bash

# Template file for 'libdom'
pkgname=libdom
version=0.4.2
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=d05e45af16547014c2b0a3aecf3670fa13d419f505b3f5fc7ac8a1491fc30f3c
post_extract() {
vsed -i Makefile -e 's/_BSD_SOURCE/_DEFAULT_SOURCE/g'
}
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"
}
}