|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash |
|
|
|
|
# Build script for Slackware |
|
|
|
|
# Copyright (C) 2009,2010,2011,2012,2013 Damien Goutte-Gattat |
|
|
|
|
# Copyright (C) 2009,2010,2011,2012,2013,2015 Damien Goutte-Gattat |
|
|
|
|
# |
|
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
|
# is permitted provided that the following conditions are met: |
|
|
|
@ -28,7 +28,7 @@
|
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-webkitgtk} |
|
|
|
|
VERSION=${VERSION:-2.2.2} |
|
|
|
|
VERSION=${VERSION:-2.4.9} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.xz} |
|
|
|
|
WGET=${WGET:-http://www.webkitgtk.org/releases/$ARCHIVE} |
|
|
|
|
|
|
|
|
@ -92,9 +92,10 @@ CXXFLAGS=$CPUOPT \
|
|
|
|
|
--libdir=/usr/lib$LIBDIRSUFFIX \ |
|
|
|
|
--enable-spellcheck \ |
|
|
|
|
--disable-geolocation \ |
|
|
|
|
--with-gnu-ld |
|
|
|
|
--with-gnu-ld \ |
|
|
|
|
--disable-webkit2 |
|
|
|
|
make -j $JOBS |
|
|
|
|
make install DESTDIR=$PKG |
|
|
|
|
make install-strip DESTDIR=$PKG |
|
|
|
|
|
|
|
|
|
# Compile GTK2 version |
|
|
|
|
# (distclean is not enough) |
|
|
|
@ -113,11 +114,7 @@ CXXFLAGS=$CPUOPT \
|
|
|
|
|
--with-gtk=2.0 \ |
|
|
|
|
--disable-webkit2 |
|
|
|
|
make -j $JOBS |
|
|
|
|
make install DESTDIR=$PKG |
|
|
|
|
|
|
|
|
|
# Strip binaries |
|
|
|
|
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \ |
|
|
|
|
xargs strip --strip-unneeded 2>/dev/null |
|
|
|
|
make install-strip DESTDIR=$PKG |
|
|
|
|
|
|
|
|
|
# Install the documentation |
|
|
|
|
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION |
|
|
|
|