void-packages/srcpkgs/libhubbub/template

63 lines
1.7 KiB
Text
Raw Normal View History

# Template build file for 'libhubbub'.
pkgname=libhubbub
2012-05-19 20:42:51 +00:00
version=0.1.2
revision=2
hostmakedepends="perl pkg-config"
makedepends="libxslt-devel json-c-devel libparserutils-devel"
short_desc="HTML5 compliant parsing library, written in C"
maintainer="davehome <davehome@redthumb.info.tm>"
2012-02-23 23:43:26 +00:00
homepage="http://www.netsurf-browser.org"
license="MIT"
2013-04-16 11:03:39 +00:00
distfiles="http://download.netsurf-browser.org/libs/releases/hubbub-${version}-src.tar.gz"
2012-05-19 20:42:51 +00:00
checksum=95a1d5a71055b28a8e4ce4dc8516b8f0ed691c5ee03525bf73600495657f1b52
long_desc="
Hubbub is an HTML5 compliant parsing library, written in C. It was
developed as part of the NetSurf project and is available for use
by other software under the MIT licence.
The HTML5 specification defines a parsing algorithm, based on the
behaviour of mainstream browsers, which provides instructions for
how to parse all markup, both valid and invalid. As a result, Hubbub
parses web content well.
* Features
Parses HTML, good and bad
Simple C API
Fast
Character encoding detection
Well-tested (~90% test coverage)
Portable
Shared library"
wrksrc=hubbub-${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
2012-02-23 23:43:26 +00:00
vinstall "${wrksrc}/COPYING" 0644 "usr/share/licenses/${pkgname}"
}
libhubbub-devel_package() {
depends="libhubbub>=${version}"
short_desc+=" -- development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
}
}
libhubbub_package() {
pkg_install() {
vmove usr
}
}