From 217f5f9123aa5468503a395f229cd92efd03b351 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 4 Feb 2014 20:53:22 +0100 Subject: [PATCH] libhubbub: update to 0.2.0. --- srcpkgs/libhubbub/template | 47 +++++++++++--------------------------- 1 file changed, 13 insertions(+), 34 deletions(-) diff --git a/srcpkgs/libhubbub/template b/srcpkgs/libhubbub/template index a93b8669f1..6fb0db9d7b 100644 --- a/srcpkgs/libhubbub/template +++ b/srcpkgs/libhubbub/template @@ -1,56 +1,35 @@ # Template build file for 'libhubbub'. pkgname=libhubbub -version=0.1.2 -revision=2 -hostmakedepends="perl pkg-config" +version=0.2.0 +revision=1 +hostmakedepends="perl pkg-config netsurf-buildsystem" makedepends="libxslt-devel json-c-devel libparserutils-devel" short_desc="HTML5 compliant parsing library, written in C" maintainer="davehome " homepage="http://www.netsurf-browser.org" license="MIT" -distfiles="http://download.netsurf-browser.org/libs/releases/hubbub-${version}-src.tar.gz" -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} +distfiles="http://download.netsurf-browser.org/libs/releases/${pkgname}-${version}-src.tar.gz" +checksum=91c90965fdbbfb9137c7881b33736a03fc80bd16f5cd7808e1efff3d63000eaf do_build() { - make ${makejobs} COMPONENT_TYPE=lib-shared - make ${makejobs} COMPONENT_TYPE=lib-static + make ${makejobs} COMPONENT_TYPE=lib-shared PREFIX=/usr + make ${makejobs} COMPONENT_TYPE=lib-static PREFIX=/usr } do_install() { - make ${makejobs} COMPONENT_TYPE=lib-shared \ - PREFIX=/usr DESTDIR=${DESTDIR} install - make ${makejobs} COMPONENT_TYPE=lib-static \ - PREFIX=/usr DESTDIR=${DESTDIR} install + make COMPONENT_TYPE=lib-shared PREFIX=/usr DESTDIR=${DESTDIR} install + make COMPONENT_TYPE=lib-static PREFIX=/usr DESTDIR=${DESTDIR} install - vinstall "${wrksrc}/COPYING" 0644 "usr/share/licenses/${pkgname}" + vinstall COPYING 0644 usr/share/licenses/${pkgname} } libhubbub-devel_package() { - depends="libhubbub>=${version}" - short_desc+=" -- development files" + depends="libparserutils-devel ${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig vmove "usr/lib/*.a" + vmove "usr/lib/*.so" } }