pkgname=nspr pkgver=4.36 pkgrel=1 pkgdesc="Netscape Portable Runtime" arch=('x86_64') url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR" license=('MPL-2.0') depends=('glibc' 'bash') source=(https://archive.mozilla.org/pub/nspr/releases/v${pkgver}/src/${pkgname}-${pkgver}.tar.gz) sha256sums=(55dec317f1401cd2e5dba844d340b930ab7547f818179a4002bce62e6f1c6895) prepare() { cd ${pkgname}-${pkgver}/nspr sed -i '/^RELEASE/s|^|#|' pr/src/misc/Makefile.in sed -i 's|$(LIBRARY) ||' config/rules.mk } build() { cd ${pkgname}-${pkgver}/nspr local configure_args=( --with-mozilla --with-pthreads --enable-64bit ${configure_options} ) ./configure ${configure_args[@]} make } package() { cd ${pkgname}-${pkgver}/nspr make DESTDIR=${pkgdir} install }