PKGBUILDs/core/nspr/PKGBUILD

56 lines
1.3 KiB
Bash
Raw Normal View History

2020-07-29 14:50:19 +00:00
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
2015-07-05 22:51:50 +00:00
# Contributor: Alexander Baldeck <alexander@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - --enable-64bit for AArch64
pkgname=nspr
2022-08-08 23:48:01 +00:00
pkgver=4.34.1
2022-05-30 19:24:39 +00:00
pkgrel=1
2015-07-05 22:51:50 +00:00
pkgdesc="Netscape Portable Runtime"
2017-04-24 19:13:30 +00:00
url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR"
2018-01-22 01:32:43 +00:00
arch=(x86_64)
2017-04-24 19:13:30 +00:00
license=(MPL GPL)
depends=(glibc sh)
2021-12-19 05:21:25 +00:00
makedepends=(zip mercurial)
2022-04-05 14:47:52 +00:00
options=(debug)
2022-08-08 23:48:01 +00:00
_revision=8ade27144af69b35b1aef37e3f9e1353258b7d70
2021-12-19 05:21:25 +00:00
source=("hg+https://hg.mozilla.org/projects/nspr#revision=$_revision")
sha256sums=('SKIP')
pkgver() {
cd nspr
2022-04-05 14:47:52 +00:00
hg id -t -r. | sed 's/^NSPR_//;s/_RTM$//;s/_/./g'
2021-12-19 05:21:25 +00:00
}
2017-08-09 19:41:27 +00:00
prepare() {
2021-12-19 05:21:25 +00:00
cd nspr
2017-08-09 19:41:27 +00:00
}
2015-07-05 22:51:50 +00:00
build() {
2021-12-19 05:21:25 +00:00
cd nspr
2017-08-09 19:41:27 +00:00
./configure \
2015-07-05 22:51:50 +00:00
--prefix=/usr \
--libdir=/usr/lib \
--includedir=/usr/include/nspr \
--enable-optimize \
2017-04-24 19:13:30 +00:00
--disable-debug \
$([[ $CARCH == x86_64 || $CARCH == aarch64 ]] && echo --enable-64bit)
2019-08-25 19:20:24 +00:00
make ${SOURCE_DATE_EPOCH:+
SH_NOW="${SOURCE_DATE_EPOCH}000000"
SH_DATE="$(date --utc --date="@$SOURCE_DATE_EPOCH" '+%Y-%m-%d %T')"
2019-10-21 12:29:22 +00:00
}
2015-07-05 22:51:50 +00:00
}
package() {
2021-12-19 05:21:25 +00:00
cd nspr
2015-07-05 22:51:50 +00:00
make DESTDIR="$pkgdir" install
ln -s nspr.pc "$pkgdir/usr/lib/pkgconfig/mozilla-nspr.pc"
2021-12-19 05:21:25 +00:00
rm -r "$pkgdir"/usr/include/nspr/md
rm "$pkgdir"/usr/bin/{compile-et.pl,prerr.properties}
2015-07-05 22:51:50 +00:00
}
2021-12-19 05:21:25 +00:00
# vim:set sw=2 et: