summaryrefslogtreecommitdiff
path: root/network/midori/midori.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/midori/midori.SlackBuild')
-rw-r--r--network/midori/midori.SlackBuild15
1 files changed, 12 insertions, 3 deletions
diff --git a/network/midori/midori.SlackBuild b/network/midori/midori.SlackBuild
index 6fe6ce0899..cf019455cd 100644
--- a/network/midori/midori.SlackBuild
+++ b/network/midori/midori.SlackBuild
@@ -26,7 +26,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=midori
-VERSION=${VERSION:-0.4.8}
+VERSION=${VERSION:-0.5.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,6 +60,14 @@ else
LIBDIRSUFFIX=""
fi
+# GTK3 support is disabled by default but can be enabled
+# by passing GTK3=yes to the script
+if [ "${GTK3:-no}" = "yes" ]; then
+ ENABLE_GTK3="enable"
+else
+ ENABLE_GTK3="disable"
+fi
+
set -eu
rm -rf $PKG
@@ -87,8 +95,7 @@ export CXXFLAGS="$SLKCFLAGS"
--localstatedir=/var \
--datarootdir=/usr/share/ \
--mandir=/usr/man \
- --enable-unique \
- --enable-addons \
+ --$ENABLE_GTK3-gtk3 \
--disable-zeitgeist
./waf build
@@ -98,6 +105,8 @@ export CXXFLAGS="$SLKCFLAGS"
mv $PKG/etc/xdg/midori/search $PKG/etc/xdg/midori/search.new
mv $PKG/etc/xdg/midori/extensions/adblock/config $PKG/etc/xdg/midori/extensions/adblock/config.new
+# The other doc files have already been copied into /usr/doc/$PRGNAM-$VERSION
+# by "./waf install"
cp -a HACKING INSTALL TODO TRANSLATE \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild