From e502e60d0bd2f6e114dccb673fcbb0a7ace0c1d1 Mon Sep 17 00:00:00 2001 From: davehome Date: Thu, 23 Feb 2012 12:44:52 -0700 Subject: [PATCH] New package: libcss-0.1.1 (for netsurf) --- srcpkgs/libcss-devel | 1 + srcpkgs/libcss/depends | 2 ++ srcpkgs/libcss/libcss-devel.template | 14 ++++++++++ srcpkgs/libcss/libcss.rshlibs | 3 +++ srcpkgs/libcss/template | 40 ++++++++++++++++++++++++++++ 5 files changed, 60 insertions(+) create mode 120000 srcpkgs/libcss-devel create mode 100644 srcpkgs/libcss/depends create mode 100644 srcpkgs/libcss/libcss-devel.template create mode 100644 srcpkgs/libcss/libcss.rshlibs create mode 100644 srcpkgs/libcss/template diff --git a/srcpkgs/libcss-devel b/srcpkgs/libcss-devel new file mode 120000 index 00000000000..f97cea8fc36 --- /dev/null +++ b/srcpkgs/libcss-devel @@ -0,0 +1 @@ +libcss \ No newline at end of file diff --git a/srcpkgs/libcss/depends b/srcpkgs/libcss/depends new file mode 100644 index 00000000000..56fb9e056a7 --- /dev/null +++ b/srcpkgs/libcss/depends @@ -0,0 +1,2 @@ +abi_depends=">=0.1.1" +api_depends="${abi_depends}" diff --git a/srcpkgs/libcss/libcss-devel.template b/srcpkgs/libcss/libcss-devel.template new file mode 100644 index 00000000000..1d19c6e58e2 --- /dev/null +++ b/srcpkgs/libcss/libcss-devel.template @@ -0,0 +1,14 @@ +# Template file for 'libcss-devel'. +# +short_desc="${sourcepkg} development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run libcss + +do_install() { + vmove usr/include usr + vmove usr/lib/pkgconfig usr/lib + vmove "usr/lib/*.a" usr/lib +} diff --git a/srcpkgs/libcss/libcss.rshlibs b/srcpkgs/libcss/libcss.rshlibs new file mode 100644 index 00000000000..2b2a01e2bf3 --- /dev/null +++ b/srcpkgs/libcss/libcss.rshlibs @@ -0,0 +1,3 @@ +libparserutils.so.0 +libwapcaplet.so.0 +libc.so.6 diff --git a/srcpkgs/libcss/template b/srcpkgs/libcss/template new file mode 100644 index 00000000000..5604372492e --- /dev/null +++ b/srcpkgs/libcss/template @@ -0,0 +1,40 @@ +# Template build file for 'libcss'. +pkgname=libcss +version=0.1.1 +distfiles="http://www.netsurf-browser.org/projects/releases/${pkgname}-${version}-src.tar.gz" +short_desc="CSS parser and selection engine, written in C." +maintainer="davehome " +checksum=383c424c1f7134be67e22a7a633e31d47ba6b87aba835a4e73eca893aa01c0a0 +long_desc=" + LibCSS is a CSS (Cascading Style Sheet) parser and selection engine, + written in C. It was developed as part of the NetSurf project and is + available for use by other software under the MIT licence. For further + details, see the readme. + + * Features + Parses CSS, good and bad + Simple C API + Low memory usage + Fast selection engine + Portable + Shared library" + +subpackages="${pkgname}-devel" + +Add_dependency build sed +Add_dependency build pkg-config +Add_dependency build perl +Add_dependency build libparserutils-devel +Add_dependency build libwapcaplet-devel + +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 +}