mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
55 lines
1.3 KiB
Bash
55 lines
1.3 KiB
Bash
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
|
# Contributor: Jan de Groot <jgc@archlinux.org>
|
|
# Contributor: Alexander Baldeck <alexander@archlinux.org>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - --enable-64bit for AArch64
|
|
|
|
pkgname=nspr
|
|
pkgver=4.34.1
|
|
pkgrel=1
|
|
pkgdesc="Netscape Portable Runtime"
|
|
url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR"
|
|
arch=(x86_64)
|
|
license=(MPL GPL)
|
|
depends=(glibc sh)
|
|
makedepends=(zip mercurial)
|
|
options=(debug)
|
|
_revision=8ade27144af69b35b1aef37e3f9e1353258b7d70
|
|
source=("hg+https://hg.mozilla.org/projects/nspr#revision=$_revision")
|
|
sha256sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd nspr
|
|
hg id -t -r. | sed 's/^NSPR_//;s/_RTM$//;s/_/./g'
|
|
}
|
|
|
|
prepare() {
|
|
cd nspr
|
|
}
|
|
|
|
build() {
|
|
cd nspr
|
|
./configure \
|
|
--prefix=/usr \
|
|
--libdir=/usr/lib \
|
|
--includedir=/usr/include/nspr \
|
|
--enable-optimize \
|
|
--disable-debug \
|
|
$([[ $CARCH == x86_64 || $CARCH == aarch64 ]] && echo --enable-64bit)
|
|
make ${SOURCE_DATE_EPOCH:+
|
|
SH_NOW="${SOURCE_DATE_EPOCH}000000"
|
|
SH_DATE="$(date --utc --date="@$SOURCE_DATE_EPOCH" '+%Y-%m-%d %T')"
|
|
}
|
|
}
|
|
|
|
package() {
|
|
cd nspr
|
|
make DESTDIR="$pkgdir" install
|
|
ln -s nspr.pc "$pkgdir/usr/lib/pkgconfig/mozilla-nspr.pc"
|
|
|
|
rm -r "$pkgdir"/usr/include/nspr/md
|
|
rm "$pkgdir"/usr/bin/{compile-et.pl,prerr.properties}
|
|
}
|
|
|
|
# vim:set sw=2 et:
|