summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-04-16 18:01:13 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-04-17 14:08:05 -0300
commit481742ffde7d146d69b65c93076205d0912fdd2c (patch)
treeee68cc587492643dfcdf728bb6be1d788c5e681e /libre
parenteb49aab01b960b6fb0a85cbd6d8224a850465963 (diff)
downloadabslibre-481742ffde7d146d69b65c93076205d0912fdd2c.tar.gz
abslibre-481742ffde7d146d69b65c93076205d0912fdd2c.tar.bz2
abslibre-481742ffde7d146d69b65c93076205d0912fdd2c.zip
nspr-static: add new package to [libre]
Diffstat (limited to 'libre')
-rw-r--r--libre/nspr-static/PKGBUILD43
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*
+}