void-packages/srcpkgs/libdom/template

56 lines
1.4 KiB
Plaintext

# Template build file for 'libdom'.
pkgname=libdom
_svnrev=13951
version=20120706.${_svnrev}
revision=1
hostmakedepends="pkg-config perl subversion"
makedepends="libxml2-devel libparserutils-devel libwapcaplet-devel libhubbub-devel"
short_desc="Implementation of the W3C DOM, written in C."
maintainer="davehome <davehome@redthumb.info.tm>"
license="MIT"
homepage="http://www.netsurf-browser.org"
long_desc="
LibDOM is an implementation of the W3C DOM, written in C. It is
currently in development for use with NetSurf and is intended to
be suitable for use in other projects too. For further details,
see the readme."
nofetch=yes
noextract=yes
do_fetch() {
local url="svn://svn.netsurf-browser.org/trunk/libdom"
msg_normal " Fetching source from $url (revision ${_svnrev}) ...\n"
svn checkout -r ${_svnrev} ${url} ${pkgname}-${version}
}
do_build() {
make ${makejobs} COMPONENT_TYPE=lib-shared
make ${makejobs} COMPONENT_TYPE=lib-static
}
do_install() {
make ${makejobs} COMPONENT_TYPE=lib-shared \
PREFIX=/usr DESTDIR=${DESTDIR} install
make ${makejobs} COMPONENT_TYPE=lib-static \
PREFIX=/usr DESTDIR=${DESTDIR} install
vinstall "${wrksrc}/COPYING" 644 "usr/share/license/${pkgname}"
}
libdom-devel_package() {
depends="libdom>=${version}"
short_desc+=" -- development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
}
}
libdom_package() {
pkg_install() {
vmove usr
}
}