diff options
Diffstat (limited to 'libre/nspr-static')
-rw-r--r-- | libre/nspr-static/PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/libre/nspr-static/PKGBUILD b/libre/nspr-static/PKGBUILD new file mode 100644 index 000000000..f8ef0bd71 --- /dev/null +++ b/libre/nspr-static/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Márcio Silva <coadde@parabola.nu> +# based of nspr + +_pkgname=nspr +pkgname=nspr-static +pkgver=4.12 +pkgrel=1 +pkgdesc="Netscape Portable Runtime (static libraries only)" +arch=(i686 x86_64 armv7h) +url="http://www.mozilla.org/projects/nspr/" +license=('MPL' 'GPL') +depends=('nspr') +makedepends=('zip') +options=('!emptydirs' 'staticlibs') +source=(https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${pkgver}/src/${_pkgname}-${pkgver}.tar.gz) +sha1sums=('14fb67a0e686a5c662f92e7f59dfd10053f327dd') +sha256sums=('e0b10a1e569153668ff8bdea6c7e491b389fab69c2f18285a1ebf7c2ea4269de') + +build() { + cd $_pkgname-$pkgver + + if [ "$CARCH" = "x86_64" ]; then + _confflags="--enable-64bit" + else + _confflags="" + fi + + ./nspr/configure \ + --prefix=/usr \ + --libdir=/usr/lib \ + --enable-optimize \ + --disable-debug ${_confflags} + make +} + +package() { + cd $_pkgname-$pkgver + make DESTDIR="$pkgdir" install + + # remove conflicting files + rm -vr ${pkgdir}/usr/{bin,include,lib/pkgconfig,share} + rm -v ${pkgdir}/usr/lib/lib*.so* +} |