new: moved nss and nspr from desktop

This commit is contained in:
ngn
2024-08-11 22:39:32 +03:00
parent 4fa0e2b061
commit fbfa78eb22
7 changed files with 361 additions and 0 deletions

3
src/nspr/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

2
src/nspr/changes.md Normal file
View File

@ -0,0 +1,2 @@
# 4.35
First version

31
src/nspr/pkg.sh Normal file
View File

@ -0,0 +1,31 @@
# general info
NAME="nspr"
DESC="Netscape Portable Runtime"
VERSION="4.35"
# required files
FILES=("https://archive.mozilla.org/pub/nspr/releases/v${VERSION}/src/nspr-${VERSION}.tar.gz")
HASHES=("5e0acf9fbdde85181bddd510f4624841")
# install and build depends
DEPENDS=("glibc" "bash")
BUILD=("zip")
PACKAGE(){
tar xf "${NAME}-${VERSION}.tar.gz"
cd "${NAME}-${VERSION}"
cd nspr
sed -i '/^RELEASE/s|^|#|' pr/src/misc/Makefile.in
sed -i 's|$(LIBRARY) ||' config/rules.mk
./configure --prefix=/usr \
--with-mozilla \
--with-pthreads \
--enable-64bit
make
make DESTDIR="${ROOTDIR}" install
cd ../.. && rm -r "${NAME}-${VERSION}"
}