nss: split build stuff into do_build().

--HG--
extra : convert_revision : f8bcb5832d20019f1bc431680e6e6bb3d333ca4f
This commit is contained in:
Juan RP 2010-01-16 03:38:39 +01:00
parent ea8089defb
commit c504b30c7a

View File

@ -23,9 +23,9 @@ Add_dependency build zlib-devel
Add_dependency build nspr-devel
Add_dependency build sqlite-devel
do_install()
do_build()
{
install -d ${DESTDIR}/usr/include/nss ${DESTDIR}/usr/lib/pkgconfig
cd ${wrksrc} || return 1
if [ "$xbps_machine" = "x86_64" ]; then
_use64="USE_64=1"
fi
@ -36,7 +36,14 @@ do_install()
NSPR_INCLUDE_DIR=/usr/include/nspr \
NSPR_LIB_DIR=/usr/lib ${_use64} || return 1
done
}
do_install()
{
cd ${wrksrc} || return 1
install -d ${DESTDIR}/usr/include/nss \
${DESTDIR}/usr/lib/pkgconfig
install -m644 mozilla/dist/public/nss/*.h \
${DESTDIR}/usr/include/nss || return 1
install -m755 mozilla/dist/*.OBJ/lib/*.so \