diff options
Diffstat (limited to 'academic/xiphos/xiphos.SlackBuild')
-rw-r--r-- | academic/xiphos/xiphos.SlackBuild | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/academic/xiphos/xiphos.SlackBuild b/academic/xiphos/xiphos.SlackBuild index dc1d29b0193b2..b6829d93b05dc 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 |