aboutsummaryrefslogtreecommitdiff
path: root/system/xarchiver/xarchiver.SlackBuild
diff options
context:
space:
mode:
authorEdward W. Koenig <kingbeowulf{at}gmail{dot}com>2017-07-10 09:01:58 +0100
committerDavid Spencer <idlemoor@slackbuilds.org>2017-07-12 16:39:19 +0100
commit9f34af4e91a50c25a8506636b52c6702b3bdd4d5 (patch)
tree709d87ade3d8bd82605a3b7b8c6a1acd6531e645 /system/xarchiver/xarchiver.SlackBuild
parent9212ab5d2e55619ecc39e2634b6535373e915016 (diff)
system/xarchiver: Updated for version 0.5.4.11.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/xarchiver/xarchiver.SlackBuild')
-rw-r--r--system/xarchiver/xarchiver.SlackBuild18
1 files changed, 14 insertions, 4 deletions
diff --git a/system/xarchiver/xarchiver.SlackBuild b/system/xarchiver/xarchiver.SlackBuild
index 149d72610ab2..658fff0d6671 100644
--- a/system/xarchiver/xarchiver.SlackBuild
+++ b/system/xarchiver/xarchiver.SlackBuild
@@ -24,13 +24,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=xarchiver
-VERSION=${VERSION:-0.5.4.8}
+VERSION=${VERSION:-0.5.4.11}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -41,8 +41,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -70,12 +70,19 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Add GTK_COMPAT_DESTROY_TYPE
+# There is a difference in the parameter types of the
+# "destroy" callback function between GTK+ 2 and GTK+ 3.
+# This fixes github issue #27, reported by apoleon.
+patch -p1 < $CWD/gtk_fix.diff
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
+ --mandir=/usr/man \
--localstatedir=/var \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--enable-debug=no \
@@ -84,6 +91,9 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install-strip DESTDIR=$PKG
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cd $PKG/usr/doc ; ln -s xarchiver-$VERSION xarchiver ; cd -