# Template file for 'libdom' pkgname=libdom version=0.4.0 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 " license="MIT" homepage="https://www.netsurf-browser.org" distfiles="https://download.netsurf-browser.org/libs/releases/libdom-${version}-src.tar.gz" checksum=9eb9cd308136d5078fd9a342f391ef65071e8660a0ea29d50cb41d37a8c6b3c7 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" } }