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)
15 _revision=b563bfc16c887c48b038b7b441fcc4e40a126d3b
16 source=("hg+https://hg.mozilla.org/projects/nspr#revision=$_revision")
21 hg id -t -r. | sed 's/^NSPR_//;s/_RTM$//;s/_/./g'
33 --includedir=/usr/include/nspr \
37 make ${SOURCE_DATE_EPOCH:+
38 SH_NOW="${SOURCE_DATE_EPOCH}000000"
39 SH_DATE="$(date --utc --date="@$SOURCE_DATE_EPOCH" '+%Y-%m-%d %T')"
45 make DESTDIR="$pkgdir" install
46 ln -s nspr.pc "$pkgdir/usr/lib/pkgconfig/mozilla-nspr.pc"
48 rm -r "$pkgdir"/usr/include/nspr/md
49 rm "$pkgdir"/usr/bin/{compile-et.pl,prerr.properties}