mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-23 17:33:34 +08:00
lib32-nspr: update to 4.10.8
This commit is contained in:
parent
968a22eef1
commit
88b175c6ea
@ -1,10 +1,10 @@
|
|||||||
|
#
|
||||||
# Lib32 Packages for Chakra, part of chakra-project.org
|
# Lib32 Packages for Chakra, part of chakra-project.org
|
||||||
#
|
#
|
||||||
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
|
||||||
|
|
||||||
_pkgbasename=nspr
|
_pkgbasename=nspr
|
||||||
pkgname=lib32-$_pkgbasename
|
pkgname=lib32-$_pkgbasename
|
||||||
pkgver=4.9.4
|
pkgver=4.10.8
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Netscape Portable Runtime (32-bit)"
|
pkgdesc="Netscape Portable Runtime (32-bit)"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
@ -12,47 +12,30 @@ url="http://www.mozilla.org/projects/nspr/"
|
|||||||
license=('MPL' 'GPL')
|
license=('MPL' 'GPL')
|
||||||
depends=('lib32-glibc' $_pkgbasename=$pkgver)
|
depends=('lib32-glibc' $_pkgbasename=$pkgver)
|
||||||
makedepends=('zip' 'gcc-multilib')
|
makedepends=('zip' 'gcc-multilib')
|
||||||
options=(!emptydirs)
|
options=('!emptydirs')
|
||||||
source=(ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${pkgver}/src/${_pkgbasename}-${pkgver}.tar.gz
|
source=(ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${pkgver}/src/${_pkgbasename}-${pkgver}.tar.gz)
|
||||||
nspr.pc.in)
|
sha1sums=('c87c6a10e0e36866006b45c194d70cd8c67d0934')
|
||||||
md5sums=('cf58772702b3abbdcff14e22014eeeaf'
|
|
||||||
'bce1611f3117b53fc904cab549c09967')
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
||||||
unset CFLAGS
|
|
||||||
unset CXXFLAGS
|
./nspr/configure \
|
||||||
./mozilla/nsprpub/configure \
|
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--libdir=/usr/lib32 \
|
--libdir=/usr/lib32 \
|
||||||
--includedir=/usr/include/nspr \
|
--includedir=/usr/include/nspr \
|
||||||
--enable-optimize \
|
--enable-optimize \
|
||||||
--disable-debug ${confflags}
|
--disable-debug \
|
||||||
|
--enable-32bit
|
||||||
make
|
make
|
||||||
|
|
||||||
NSPR_LIBS=`./config/nspr-config --libs`
|
|
||||||
NSPR_CFLAGS=`./config/nspr-config --cflags`
|
|
||||||
NSPR_VERSION=`./config/nspr-config --version`
|
|
||||||
install -m755 -d "${pkgdir}/usr/lib/pkgconfig"
|
|
||||||
sed "${srcdir}/nspr.pc.in" -e "s,%libdir%,/usr/lib32," \
|
|
||||||
-e "s,%prefix%,/usr," \
|
|
||||||
-e "s,%exec_prefix%,/usr/bin," \
|
|
||||||
-e "s,%includedir%,/usr/include/nspr," \
|
|
||||||
-e "s,%NSPR_VERSION%,${NSPR_VERSION}," \
|
|
||||||
-e "s,%FULL_NSPR_LIBS%,${NSPR_LIBS}," \
|
|
||||||
-e "s,%FULL_NSPR_CFLAGS%,${NSPR_CFLAGS}," > "${srcdir}/nspr.pc"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
||||||
make DESTDIR="${pkgdir}" install
|
make DESTDIR="${pkgdir}" install
|
||||||
|
|
||||||
install -m755 -D "${srcdir}/nspr.pc" "${pkgdir}"/usr/lib32/pkgconfig/nspr.pc
|
chmod 644 "$pkgdir"/usr/lib32/*.a
|
||||||
chmod 644 "${pkgdir}/usr/lib32/pkgconfig/nspr.pc"
|
ln -s nspr.pc "$pkgdir/usr/lib32/pkgconfig/mozilla-nspr.pc"
|
||||||
ln -sf nspr.pc "${pkgdir}/usr/lib32/pkgconfig/mozilla-nspr.pc"
|
rm -r "$pkgdir"/usr/bin/{compile-et.pl,prerr.properties} \
|
||||||
|
"$pkgdir/usr/include/nspr/md"
|
||||||
chmod 644 ${pkgdir}/usr/lib32/*.a
|
|
||||||
|
|
||||||
rm -rf "${pkgdir}"/usr/{bin,share,include}
|
rm -rf "${pkgdir}"/usr/{bin,share,include}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user