aboutsummaryrefslogtreecommitdiffstats
path: root/nspr/PKGBUILD
blob: 8b6bec7d1649c985a0ceb4f800807f78d9f10f89 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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}"
}