From 797d8927d263923d888912b555a34bce3ad13a53 Mon Sep 17 00:00:00 2001 From: davehome Date: Thu, 23 Feb 2012 12:36:14 -0700 Subject: [PATCH] New package: libwapcaplet-0.1.0 (for netsurf) --- srcpkgs/libwapcaplet-devel | 1 + srcpkgs/libwapcaplet/depends | 2 ++ .../libwapcaplet/libwapcaplet-devel.template | 14 +++++++++ srcpkgs/libwapcaplet/libwapcaplet.rshlibs | 1 + srcpkgs/libwapcaplet/template | 31 +++++++++++++++++++ 5 files changed, 49 insertions(+) create mode 120000 srcpkgs/libwapcaplet-devel create mode 100644 srcpkgs/libwapcaplet/depends create mode 100644 srcpkgs/libwapcaplet/libwapcaplet-devel.template create mode 100644 srcpkgs/libwapcaplet/libwapcaplet.rshlibs create mode 100644 srcpkgs/libwapcaplet/template diff --git a/srcpkgs/libwapcaplet-devel b/srcpkgs/libwapcaplet-devel new file mode 120000 index 00000000000..c12e300eeec --- /dev/null +++ b/srcpkgs/libwapcaplet-devel @@ -0,0 +1 @@ +libwapcaplet \ No newline at end of file diff --git a/srcpkgs/libwapcaplet/depends b/srcpkgs/libwapcaplet/depends new file mode 100644 index 00000000000..140f5aa7a9d --- /dev/null +++ b/srcpkgs/libwapcaplet/depends @@ -0,0 +1,2 @@ +abi_depends=">=0.1.0" +api_depends="${abi_depends}" diff --git a/srcpkgs/libwapcaplet/libwapcaplet-devel.template b/srcpkgs/libwapcaplet/libwapcaplet-devel.template new file mode 100644 index 00000000000..bb549e76331 --- /dev/null +++ b/srcpkgs/libwapcaplet/libwapcaplet-devel.template @@ -0,0 +1,14 @@ +# Template file for 'libwapcaplet-devel'. +# +short_desc="${sourcepkg} development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run libwapcaplet + +do_install() { + vmove usr/include usr + vmove usr/lib/pkgconfig usr/lib + vmove "usr/lib/*.a" usr/lib +} diff --git a/srcpkgs/libwapcaplet/libwapcaplet.rshlibs b/srcpkgs/libwapcaplet/libwapcaplet.rshlibs new file mode 100644 index 00000000000..631aa1dda40 --- /dev/null +++ b/srcpkgs/libwapcaplet/libwapcaplet.rshlibs @@ -0,0 +1 @@ +libc.so.6 diff --git a/srcpkgs/libwapcaplet/template b/srcpkgs/libwapcaplet/template new file mode 100644 index 00000000000..35d095287af --- /dev/null +++ b/srcpkgs/libwapcaplet/template @@ -0,0 +1,31 @@ +# Template build file for 'libwapcaplet'. +pkgname=libwapcaplet +version=0.1.0 +distfiles="http://www.netsurf-browser.org/projects/releases/${pkgname}-${version}-src.tar.gz" +short_desc="String internment library, written in C" +maintainer="davehome " +checksum=e58df9d4ee18344946d5c7c17fb99f29269027dafd875e2fe10bb1fb9d7fc1a7 +long_desc=" + LibWapcaplet is a string internment library, written in C. It provides + reference counted string interment and rapid string comparison + functionality. 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." + +subpackages="${pkgname}-devel" + +Add_dependency build sed + +wrksrc=${pkgname}-${version}-src + +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 +}