pcre: fork, fix sources
[kiss-trunc88.git] / palemoon.mineold / build
blobf59e51b9c1a83424db58dd5a82e85477446d157e
1 #!/bin/sh -e
3 # Build autoconf 2.13 for browser's sole use.
5 cd autoconf2.13
7 ./configure \
8 --prefix="$PWD/../junk" \
9 --program-suffix=-2.13
11 make
12 make install
16 cd yasm
18 ./configure \
19 --prefix=/
21 make
22 make DESTDIR="$PWD/../junk" install
25 for f in zip unzip; do (
26 cd "$f"
28 make \
29 CC="$CC $CFLAGS $CXXFLAGS" \
30 -f unix/Makefile generic
32 make \
33 prefix="$PWD/../junk" \
34 -f unix/Makefile install
35 ) done
37 export PATH="$PWD/junk/bin:$PATH"
39 sed -e 's#%SRCDIR%#'"$(realpath .)"'#g' -e "s#%CFLAGS%#$CFLAGS#g" mozconfig.in > .mozconfig
41 patch -p1 < gcc11-fix.patch
42 patch -p1 < null-fix.patch
43 patch -p1 < parenth.patch
45 export LDFLAGS="$LDFLAGS -Wl,-rpath=/usr/lib/browser"
47 ./mach build
48 ./mach stage
50 mkdir -p "$1/usr/bin"
51 mkdir -p "$1/usr/lib"
53 cp -r objdir/dist/palemoon "$1/usr/lib/browser"
54 ln -s ../lib/browser/palemoon "$1/usr/bin/browser"
56 sed -i '/palemoon/d' "$1/var/db/kiss/installed/palemoon/depends"