1 # Description: Netscape Portable Runtime library
2 # URL: http://www.mozilla.org/projects/nspr/
3 # Maintainer: Fredrik Rinnestam, fredrik at rinnestam dot se
4 # Arch Maintainer: CRUX-ARM System Team. devel at crux-arm dot nu
9 source=(https://ftp.mozilla.org/pub/nspr/releases/v$version/src/$name-$version.tar.gz
13 local NSPR_LIBS NSPR_CFLAGS NSPR_VERSION
15 cd $name-$version/nspr
20 --includedir=/usr/include/nspr \
21 --enable-optimize="$CFLAGS" \
25 make DESTDIR=$PKG install
27 NSPR_LIBS=`./config/nspr-config --libs`
28 NSPR_CFLAGS=`./config/nspr-config --cflags`
29 NSPR_VERSION=`./config/nspr-config --version`
31 install -d $PKG/usr/lib/pkgconfig
34 -e "s,@libdir@,/usr/lib," \
35 -e "s,@prefix@,/usr," \
36 -e "s,@exec_prefix@,/usr/bin," \
37 -e "s,@includedir@,/usr/include/nspr," \
38 -e "s,@NSPR_VERSION@,$NSPR_VERSION," \
39 -e "s,@FULL_NSPR_LIBS@,$NSPR_LIBS," \
40 -e "s,@FULL_NSPR_CFLAGS@,$NSPR_CFLAGS," > \
41 $PKG/usr/lib/pkgconfig/nspr.pc
43 rm $PKG/usr/bin/{compile-et.pl,prerr.properties}
44 rm -r $PKG/usr/include/nspr/md