summaryrefslogtreecommitdiff
path: root/repo/system/nspr.xibuild
blob: 9ce0d6838eddf9e814c373cc4f3ad5f1f838751a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

DEPS=(glibc bash)

PKG_VER=4.33

SOURCE=https://archive.mozilla.org/pub/nspr/releases/v$PKG_VER/src/nspr-$PKG_VER.tar.gz
DESC="Netscape Portable Runtime"

patch () {
    sed -ri '/^RELEASE/s/^/#/' pr/src/misc/Makefile.in 
    sed -i 's#$(LIBRARY) ##'   config/rules.mk         
}

build () {
    cd nspr
    ./configure \
            --prefix=/usr --with-mozilla --with-pthreads --enable-64bit
    make
}

package () {
    make DESTDIR=$PKG_DEST install 
}