summaryrefslogtreecommitdiffstats
path: root/academic/xiphos/xiphos.SlackBuild
diff options
context:
space:
mode:
author Tim Dickson2017-10-21 01:58:09 +0200
committer Willy Sudiarto Raharjo2017-10-21 01:58:09 +0200
commitd7ebd09fcd7f59ba2cb12f45eecff627aec49860 (patch)
treeb4dfb1faf84dd9667ac5cfd5271f68921509dc88 /academic/xiphos/xiphos.SlackBuild
parent60617f4814b20372c8e2cf9e5fc359f6fda18d40 (diff)
downloadslackbuilds-d7ebd09fcd7f59ba2cb12f45eecff627aec49860.tar.gz
academic/xiphos: Updated for version 4.0.7.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/xiphos/xiphos.SlackBuild')
-rw-r--r--academic/xiphos/xiphos.SlackBuild18
1 files changed, 14 insertions, 4 deletions
diff --git a/academic/xiphos/xiphos.SlackBuild b/academic/xiphos/xiphos.SlackBuild
index dc1d29b019..b6829d93b0 100644
--- a/academic/xiphos/xiphos.SlackBuild
+++ b/academic/xiphos/xiphos.SlackBuild
@@ -23,9 +23,11 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=xiphos
-VERSION=${VERSION:-4.0.6}
+VERSION=${VERSION:-4.0.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+#if WK2 is yes use webkit2. this requires webkit2gtk and gtkhtml (v4) instead of webkitgtk3
+WK2=${WK2:-no}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -60,7 +62,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION-20170810.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION-20170924.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -68,7 +70,15 @@ find -L . \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-
+if [ "x$WK2" = "xyes" ]; then
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./waf configure \
+ --prefix=/usr \
+ --enable-webkit2 \
+ --gtk=3
+# --gtk=2 doesn't work with webkitgtk as gtk2 is disabled
+else
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./waf configure \
@@ -76,7 +86,7 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-webkit-editor \
--gtk=3
# --gtk=2 doesn't work with webkitgtk as gtk2 is disabled
-
+fi
./waf build
./waf install --destdir=$PKG