1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
3 # Contributor: Alexander Baldeck <alexander@archlinux.org>
8 pkgdesc="Netscape Portable Runtime"
9 url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR"
13 makedepends=(zip mercurial)
14 _revision=b563bfc16c887c48b038b7b441fcc4e40a126d3b
15 source=("hg+https://hg.mozilla.org/projects/nspr#revision=$_revision")
20 hg id -t -r. | sed 's/^NSPR_//;s/_RTM$//;s/_/./g'
32 --includedir=/usr/include/nspr \
36 make ${SOURCE_DATE_EPOCH:+
37 SH_NOW="${SOURCE_DATE_EPOCH}000000"
38 SH_DATE="$(date --utc --date="@$SOURCE_DATE_EPOCH" '+%Y-%m-%d %T')"
44 make DESTDIR="$pkgdir" install
45 ln -s nspr.pc "$pkgdir/usr/lib/pkgconfig/mozilla-nspr.pc"
47 rm -r "$pkgdir"/usr/include/nspr/md
48 rm "$pkgdir"/usr/bin/{compile-et.pl,prerr.properties}