libnsbmp: fix to build/install properly.
This commit is contained in:
parent
3f7652d755
commit
8dd7686e11
|
@ -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
|
||||
}
|
||||
|
|
1
srcpkgs/libnsbmp/libnsbmp.rshlibs
Normal file
1
srcpkgs/libnsbmp/libnsbmp.rshlibs
Normal file
|
@ -0,0 +1 @@
|
|||
libc.so.6
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user