archrelease: copy trunk to extra-x86_64
[arch-packages.git] / nspr / repos / core-x86_64 / PKGBUILD
blob33284d77d65aa6a0719c11d58100aac68ff0496d
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
3 # Contributor: Alexander Baldeck <alexander@archlinux.org>
5 pkgname=nspr
6 pkgver=4.32
7 pkgrel=1
8 pkgdesc="Netscape Portable Runtime"
9 url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR"
10 arch=(x86_64)
11 license=(MPL GPL)
12 depends=(glibc sh)
13 makedepends=(zip)
14 source=(https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${pkgver}/src/nspr-${pkgver}.tar.gz)
15 sha1sums=('28e05ef5cbe6e7cde239d3cdcccabf571ec73f69')
16 sha256sums=('bb6bf4f534b9559cf123dcdc6f9cd8167de950314a90a88b2a329c16836e7f6c')
18 prepare() {
19   cd nspr-$pkgver/nspr
22 build() {
23   cd nspr-$pkgver/nspr
24   ./configure \
25       --prefix=/usr \
26       --libdir=/usr/lib \
27       --includedir=/usr/include/nspr \
28       --enable-optimize \
29       --disable-debug \
30       --enable-64bit
31   make ${SOURCE_DATE_EPOCH:+
32     SH_NOW="${SOURCE_DATE_EPOCH}000000"
33     SH_DATE="$(date --utc --date="@$SOURCE_DATE_EPOCH" '+%Y-%m-%d %T')"
34   }
37 package() {
38   cd nspr-$pkgver/nspr
39   make DESTDIR="$pkgdir" install
40   ln -s nspr.pc "$pkgdir/usr/lib/pkgconfig/mozilla-nspr.pc"
41   rm -r "$pkgdir"/usr/bin/{compile-et.pl,prerr.properties} \
42         "$pkgdir"/usr/include/nspr/md