aboutsummaryrefslogtreecommitdiffstats
path: root/nspr/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'nspr/PKGBUILD')
-rw-r--r--nspr/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/nspr/PKGBUILD b/nspr/PKGBUILD
new file mode 100644
index 0000000..8b6bec7
--- /dev/null
+++ b/nspr/PKGBUILD
@@ -0,0 +1,31 @@
+#Maintainer: Zee Eichel <zee@dracos-linux.org>
+
+pkgname=nspr
+pkgver=4.20
+pkgrel=1
+pkgdesc="Netscape Portable Runtime"
+arch=('x86_64')
+url="http://www.mozilla.org/projects/nspr/"
+license=('MPL' 'GPL')
+source=("https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${pkgver}/src/nspr-${pkgver}.tar.gz")
+sha256sums=('2c8964913da89ffbaf464d49ce44d79e8804e1794ef9a8c52a7bff7224d1556e')
+
+prepare() {
+ cd "${srcdir}/nspr-${pkgver}/nspr"
+ sed -ri 's#^(RELEASE_BINS =).*#\1#' pr/src/misc/Makefile.in
+ sed -i 's#$(LIBRARY) ##' config/rules.mk
+}
+
+build() {
+ cd "${srcdir}/nspr-${pkgver}/nspr"
+ ./configure --prefix=/usr \
+ --with-mozilla \
+ --with-pthreads \
+ --enable-64bit
+ make
+}
+
+package() {
+ cd "${srcdir}/nspr-${pkgver}/nspr"
+ make install DESTDIR="${pkgdir}"
+}