diff --git a/srcpkgs/libhubbub-devel b/srcpkgs/libhubbub-devel new file mode 120000 index 00000000000..a298af8da53 --- /dev/null +++ b/srcpkgs/libhubbub-devel @@ -0,0 +1 @@ +libhubbub \ No newline at end of file diff --git a/srcpkgs/libhubbub/depends b/srcpkgs/libhubbub/depends new file mode 100644 index 00000000000..56fb9e056a7 --- /dev/null +++ b/srcpkgs/libhubbub/depends @@ -0,0 +1,2 @@ +abi_depends=">=0.1.1" +api_depends="${abi_depends}" diff --git a/srcpkgs/libhubbub/libhubbub-devel.template b/srcpkgs/libhubbub/libhubbub-devel.template new file mode 100644 index 00000000000..e654d432987 --- /dev/null +++ b/srcpkgs/libhubbub/libhubbub-devel.template @@ -0,0 +1,14 @@ +# Template file for 'libhubbub-devel'. +# +short_desc="${sourcepkg} development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run libhubbub + +do_install() { + vmove usr/include usr + vmove usr/lib/pkgconfig usr/lib + vmove "usr/lib/*.a" usr/lib +} diff --git a/srcpkgs/libhubbub/libhubbub.rshlibs b/srcpkgs/libhubbub/libhubbub.rshlibs new file mode 100644 index 00000000000..c9ad5d604b3 --- /dev/null +++ b/srcpkgs/libhubbub/libhubbub.rshlibs @@ -0,0 +1,2 @@ +libparserutils.so.0 +libc.so.6 diff --git a/srcpkgs/libhubbub/template b/srcpkgs/libhubbub/template new file mode 100644 index 00000000000..a34fb0f7aa5 --- /dev/null +++ b/srcpkgs/libhubbub/template @@ -0,0 +1,48 @@ +# Template build file for 'libhubbub'. +pkgname=libhubbub +version=0.1.1 +distfiles="http://www.netsurf-browser.org/projects/releases/hubbub-${version}-src.tar.gz" +short_desc="HTML5 compliant parsing library, written in C." +maintainer="davehome " +checksum=363f1acf1ca3b3362bb84fc8ed9544b2207e7cb706ac176477ad00dc0d56782b +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" + +subpackages="${pkgname}-devel" + +Add_dependency build sed +Add_dependency build perl +Add_dependency build pkg-config +Add_dependency build libxslt-devel +Add_dependency build json-c-devel +Add_dependency build libparserutils-devel + +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 +}