2022-03-20 13:19:37 +01:00
|
|
|
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
|
|
|
# Contributor: Jan de Groot <jgc@archlinux.org>
|
|
|
|
# Contributor: Alexander Baldeck <alexander@archlinux.org>
|
|
|
|
|
|
|
|
pkgname=nspr
|
2022-09-14 22:10:18 +02:00
|
|
|
pkgver=4.35
|
2024-06-11 00:23:35 +02:00
|
|
|
pkgrel=3
|
2022-03-20 13:19:37 +01:00
|
|
|
pkgdesc="Netscape Portable Runtime"
|
|
|
|
url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR"
|
|
|
|
arch=(x86_64)
|
2023-12-10 23:33:08 +01:00
|
|
|
license=(MPL-2.0)
|
|
|
|
depends=(
|
|
|
|
glibc
|
|
|
|
sh
|
|
|
|
)
|
|
|
|
makedepends=(
|
|
|
|
mercurial
|
|
|
|
zip
|
|
|
|
)
|
|
|
|
source=(
|
2024-06-11 00:23:35 +02:00
|
|
|
"hg+https://hg.mozilla.org/projects/nspr#tag=NSPR_${pkgver//./_}_RTM"
|
2023-12-10 23:33:08 +01:00
|
|
|
0001-linux-prefer-GCC-provided-atomics-to-asssembly-imple.patch
|
|
|
|
0002-configure.in-Remove-assembly-files-from-build.patch
|
|
|
|
)
|
2024-06-11 00:23:35 +02:00
|
|
|
b2sums=('07fe5d0ad41d37080fb3114386490c5ff1d8f7fda406bae3c76118aff0c7007f4c3ebf94162c5c75bf6426a4c1bd0fcce2e3322b87eabfc26a652bc5e3d08dd0'
|
2023-12-10 23:33:08 +01:00
|
|
|
'fe81bbb23478958438e385ec5563842cdaf7400021def0d2f2184c0c38389e75f28ed7a4f3b52cada4d76c6318c104dda661f1d4efaa224bc832a989729ef852'
|
|
|
|
'1fd6e9b1f3111a29a052b6034f796e4e9577a3dbb2d0e96798ce1f47b74f515c882c9f595198fa1646648611525b48857b33ed62e713991e2f28850690e99060')
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd nspr
|
2023-12-10 23:33:08 +01:00
|
|
|
|
|
|
|
# https://bugzilla.mozilla.org/show_bug.cgi?id=1496426
|
|
|
|
# https://gitlab.archlinux.org/archlinux/packaging/packages/nspr/-/merge_requests/1
|
|
|
|
patch -Np1 -i ../0001-linux-prefer-GCC-provided-atomics-to-asssembly-imple.patch
|
|
|
|
patch -Np1 -i ../0002-configure.in-Remove-assembly-files-from-build.patch
|
|
|
|
|
|
|
|
autoreconf -fvi
|
2022-03-20 13:19:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2023-12-10 23:33:08 +01:00
|
|
|
local configure_options=(
|
|
|
|
--prefix=/usr
|
|
|
|
--libdir=/usr/lib
|
|
|
|
--includedir=/usr/include/nspr
|
|
|
|
--enable-optimize
|
|
|
|
--disable-debug
|
2022-03-20 13:19:37 +01:00
|
|
|
--enable-64bit
|
2023-12-10 23:33:08 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
cd nspr
|
|
|
|
./configure "${configure_options[@]}"
|
2022-03-20 13:19:37 +01:00
|
|
|
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}
|
|
|
|
}
|
|
|
|
|
2023-12-10 23:33:08 +01:00
|
|
|
# vim:set sw=2 sts=-1 et:
|