PKGBUILD 1.03 KB
Newer Older
1 2
_pkgbasename=nspr
pkgname=lib32-$_pkgbasename
3
pkgver=4.21
4 5 6
pkgrel=1
pkgdesc="Netscape Portable Runtime (32-bit)"
arch=('x86_64')
7
url="https://www.mozilla.org/projects/nspr/"
8
license=('MPL' 'GPL')
9
depends=('lib32-glibc' $_pkgbasename=$pkgver)
10
makedepends=('zip' 'lib32-gcc-libs')
Luca Giambonini's avatar
Luca Giambonini committed
11
options=('!emptydirs')
12
source=(https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${pkgver}/src/${_pkgbasename}-${pkgver}.tar.gz)
13
sha1sums=('0ae8c710a52775e209b96aa6220362837b79b6c3')
14 15

build() {
Jeff Huang's avatar
Jeff Huang committed
16
  cd "${srcdir}/${_pkgbasename}-${pkgver}/${_pkgbasename}"
17
  
Jeff Huang's avatar
Jeff Huang committed
18
  ./configure \
19 20 21 22
      --prefix=/usr \
      --libdir=/usr/lib32 \
      --includedir=/usr/include/nspr \
      --enable-optimize \
23
      --disable-debug
24 25 26 27
  make
}

package() {
Jeff Huang's avatar
Jeff Huang committed
28
  cd "${srcdir}/${_pkgbasename}-${pkgver}/${_pkgbasename}"
29
  make DESTDIR="${pkgdir}" install
30 31 32 33 34
  
  chmod 644 "$pkgdir"/usr/lib32/*.a
  ln -s nspr.pc "$pkgdir/usr/lib32/pkgconfig/mozilla-nspr.pc"
  rm -r "$pkgdir"/usr/bin/{compile-et.pl,prerr.properties} \
        "$pkgdir/usr/include/nspr/md"
35 36
  rm -rf "${pkgdir}"/usr/{bin,share,include}
}