libnsbmp: fix to build/install properly.

This commit is contained in:
davehome 2012-02-23 12:24:43 -07:00
parent 3f7652d755
commit 8dd7686e11
3 changed files with 12 additions and 13 deletions

View File

@ -1,5 +1,6 @@
# Template file for 'libnsbmp-devel'.
#
revision=1
short_desc="${sourcepkg} development files"
long_desc="${long_desc}
@ -8,14 +9,7 @@ long_desc="${long_desc}
Add_dependency run libnsbmp
do_install() {
mkdir -p ${DESTDIR}/usr/lib/pkgconfig
sed -e 's#PREFIX#/usr#' -e 's#MAJOR#0#' \
-e 's#MINOR#0#' -e 's#PATCH#3#' \
-e 's#VERSION#0.0.3#' -e 's#REQUIRED##' \
${wrksrc}/libnsbmp.pc.in \
> ${DESTDIR}/usr/lib/pkgconfig/libnsbmp.pc
mv ${wrksrc}/include ${DESTDIR}/usr
vmove usr/include usr
vmove usr/lib/pkgconfig usr/lib
vmove "usr/lib/*.a" usr/lib
}

View File

@ -0,0 +1 @@
libc.so.6

View File

@ -1,6 +1,7 @@
# Template build file for 'libnsbmp'.
pkgname=libnsbmp
version=0.0.3
revision=1
distfiles="http://www.netsurf-browser.org/projects/releases/${pkgname}-${version}-src.tar.gz"
short_desc="Decoding library for BMP and ICO images in C."
maintainer="davehome <davehome@redthumb.info.tm>"
@ -21,10 +22,13 @@ wrksrc=${pkgname}-${version}-src
Add_dependency build sed
do_build() {
make ${makejobs}
make ${makejobs} COMPONENT_TYPE=lib-shared
make ${makejobs} COMPONENT_TYPE=lib-static
}
do_install() {
vinstall "build-Linux-Linux-release-lib-static/libnsbmp.a" \
0644 "usr/lib"
make ${makejobs} COMPONENT_TYPE=lib-shared \
DESTDIR=${DESTDIR} PREFIX=/usr install
make ${makejobs} COMPONENT_TYPE=lib-static \
DESTDIR=${DESTDIR} PREFIX=/usr install
}