#!/bin/mkpkg # description: Netscape Portable Runtime library # url: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR name=nspr version=4.40 release=1 depends=() source=(https://ftp.mozilla.org/pub/nspr/releases/v$version/src/$name-$version.tar.gz nspr.pc.in) sha256sums=( "c0c1884c627f3db7a783f7c7314c695226b2043696791d15519e7e0578c19bdc" "57a655d034221760ce10278d2050bbe040b1db55be3db6e3a30f04a570877b71" ) build() { cd $name-$version/nspr ./configure \ --prefix=/usr \ --libdir=/usr/lib \ --includedir=/usr/include/nspr \ --enable-optimize="$CFLAGS" \ --enable-64bit \ --disable-debug make make DESTDIR=$PKG install NSPR_LIBS=$(./config/nspr-config --libs) NSPR_CFLAGS=$(./config/nspr-config --cflags) NSPR_VERSION=$(./config/nspr-config --version) install -d $PKG/usr/lib/pkgconfig sed $SRC/nspr.pc.in \ -e "s,@libdir@,/usr/lib," \ -e "s,@prefix@,/usr," \ -e "s,@exec_prefix@,/usr/bin," \ -e "s,@includedir@,/usr/include/nspr," \ -e "s,@NSPR_VERSION@,$NSPR_VERSION," \ -e "s,@FULL_NSPR_LIBS@,$NSPR_LIBS," \ -e "s,@FULL_NSPR_CFLAGS@,$NSPR_CFLAGS," \ > $PKG/usr/lib/pkgconfig/nspr.pc rm -f $PKG/usr/bin/compile-et.pl rm -f $PKG/usr/bin/prerr.properties rm -rf $PKG/usr/include/nspr/md } signify() { untrusted comment: public key RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 } # vim: filetype=sh