diff --git a/srcpkgs/libparserutils-devel b/srcpkgs/libparserutils-devel new file mode 120000 index 00000000000..76bd945de12 --- /dev/null +++ b/srcpkgs/libparserutils-devel @@ -0,0 +1 @@ +libparserutils \ No newline at end of file diff --git a/srcpkgs/libparserutils/depends b/srcpkgs/libparserutils/depends new file mode 100644 index 00000000000..56fb9e056a7 --- /dev/null +++ b/srcpkgs/libparserutils/depends @@ -0,0 +1,2 @@ +abi_depends=">=0.1.1" +api_depends="${abi_depends}" diff --git a/srcpkgs/libparserutils/libparserutils-devel.template b/srcpkgs/libparserutils/libparserutils-devel.template new file mode 100644 index 00000000000..b42678aaaae --- /dev/null +++ b/srcpkgs/libparserutils/libparserutils-devel.template @@ -0,0 +1,15 @@ +# Template file for 'libparserutils-devel'. +# +short_desc="${sourcepkg} development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run libparserutils + +do_install() { + + vmove usr/include usr + vmove usr/lib/pkgconfig usr/lib + +} diff --git a/srcpkgs/libparserutils/template b/srcpkgs/libparserutils/template new file mode 100644 index 00000000000..fdcddfc1431 --- /dev/null +++ b/srcpkgs/libparserutils/template @@ -0,0 +1,36 @@ +# Template build file for 'libnsgif'. +pkgname=libparserutils +version=0.1.1 +distfiles="http://www.netsurf-browser.org/projects/releases/${pkgname}-${version}-src.tar.gz" +short_desc="Library for building efficient parsers, written in C." +maintainer="davehome " +checksum=8b79ba58d6fa63fa9c74b71482d93f2c5b2c22badac77265f3cc47f3f603f87d +long_desc=" + LibParserUtils is a library for building efficient parsers, written + in C. It was developed as part of the NetSurf project and is available + for use by other software under the MIT licence. + + * Features + No mandatory dependencies (iconv() implementation optional for + enhanced charset support) + A number of built-in character set converters + Mapping of character set names to/from MIB enum values + UTF-8 and UTF-16 (host endian) support functions + Various simple data structures (resizeable buffer, stack, vector) + A UTF-8 input stream + Simple C API + Portable + Shared library" + +subpackages="${pkgname}-devel" + +Add_dependency build sed +Add_dependency build perl + +do_build() { + make ${makejobs} +} + +do_install() { + make ${makejobs} PREFIX=/usr DESTDIR=${DESTDIR} install +}