summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshish Gupta <ashmew2@gmail.com>2017-09-15 21:11:51 (GMT)
committer Ashish Gupta <ashmew2@gmail.com>2017-09-15 21:11:51 (GMT)
commit776ef5a0cdeb25327fd9728db8101ac6aa6a7822 (patch)
treeb9e0687d8086639bbf960462c81f124575f76362
parent72ad484cf5ac767353e6d8f6586e266a7199c684 (diff)
downloadnetsurf-776ef5a0cdeb25327fd9728db8101ac6aa6a7822.tar.gz
netsurf-776ef5a0cdeb25327fd9728db8101ac6aa6a7822.tar.bz2
Add builder
-rwxr-xr-xnskbuild.sh55
1 files changed, 55 insertions, 0 deletions
diff --git a/nskbuild.sh b/nskbuild.sh
new file mode 100755
index 0000000..2fef6f4
--- a/dev/null
+++ b/nskbuild.sh
@@ -0,0 +1,55 @@
+#!/bin/bash
+
+# Place me in a new directory somewhere!
+PREFIX=/opt/netsurf/
+
+sudo mkdir -p $PREFIX
+sudo chown $USER:$USER $PREFIX
+
+function gitclone() {
+ [[ ! -d $2 ]] && git clone $1
+}
+
+# # clone all ns libs
+for lib in libcss libdom libhubbub libnsbmp libnsfb libnsgif libnsutils libparserutils libsvgtiny libutf8proc libwapcaplet; do
+ gitclone git://git.netsurf-browser.org/${lib}.git ${lib}
+done
+
+# # clone toolchains, buildsystem and netsurf.
+for repo in toolchains buildsystem netsurf; do
+ gitclone git://git.netsurf-browser.org/${repo}.git ${repo}
+done
+
+# Set up the buildsystem
+cd buildsystem
+git checkout ashmew2/kolibri-cross
+make install
+cd ..
+
+# Set up the kolibrios compiler toolchain
+cd toolchains
+git checkout ashmew2/kolibrios
+cd kos32-gcc
+make install
+cd ..
+
+# Set up all netsurf libs (Order is important for libs)
+for lib in libparserutils libwapcaplet libcss libhubbub libdom libnsbmp libnsgif libnsutils libsvgtiny libutf8proc; do
+ cd $lib
+ HOST=kolibrios make install
+ cd ..
+done
+
+cd libnsfb
+git checkout ashmew2/kolibri
+HOST=kolibrios make install
+cd ..
+
+exit 0
+
+# Compile and install Netsurf
+cd netsurf
+git checkout ashmew2/netsurf-kolibrios
+make TARGET=kolibrios install
+cd ..
+