summaryrefslogtreecommitdiff
path: root/network/xombrero/xombrero.SlackBuild
diff options
context:
space:
mode:
authorErik Falor <ewfalor@gmail.com>2014-04-19 15:13:54 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-04-23 07:51:50 +0700
commit7d45fef156b82d7f45514a8f3e3fb7941c42db8c (patch)
tree72db0834b7e6c0996504235d1e2a50a5a4d0ee38 /network/xombrero/xombrero.SlackBuild
parent26a3ef5de40628e3ff9b17bb6523023c5d019447 (diff)
downloadslackbuilds-7d45fef156b82d7f45514a8f3e3fb7941c42db8c.tar.gz
network/xombrero: Fix icon.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/xombrero/xombrero.SlackBuild')
-rw-r--r--network/xombrero/xombrero.SlackBuild27
1 files changed, 12 insertions, 15 deletions
diff --git a/network/xombrero/xombrero.SlackBuild b/network/xombrero/xombrero.SlackBuild
index a44e1bfd28..d3d7ae01fb 100644
--- a/network/xombrero/xombrero.SlackBuild
+++ b/network/xombrero/xombrero.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for xombrero
-# Copyright 2013 Erik Falor, Utah, USA
+# Copyright 2014 Erik Falor, Utah, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@
PRGNAM=xombrero
VERSION=${VERSION:-1.6.3}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -36,9 +36,9 @@ if [ -z "$ARCH" ]; then
fi
CWD=$(pwd)
-TMP=${TMP:-/tmp/SBo} # For consistency's sake, use this
+TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp} # Drop the package in /tmp
+OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -64,20 +64,18 @@ tar xvf $CWD/$PRGNAM-$VERSION.tgz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -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 {} \;
# Patch xombrero.h to not expect resources in /usr/local/share/xombrero
# https://opensource.conformal.com/flyspray/index.php?do=details&task_id=372
patch -i $CWD/xombrero.h.patch
-# Hack Makefile so xombrero installs its icons and .desktop files in the right places
-# https://opensource.conformal.com/flyspray/index.php?do=details&task_id=410
-patch -d linux -i $CWD/Makefile.patch
+sed -i 's|https://www.cyphertite.com|http://www.slackware.com|' xombrero.{c,conf,h}
+sed -i 's|/etc/ssl/cert.pem|/etc/ssl/certs/ca-certificates.crt|' xombrero.conf
-# Compile the application and install it into the $PKG directory
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
PREFIX=/usr \
@@ -91,9 +89,8 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
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
-# Copy the .desktop file into usr/share/applications/,
-# massaging its icon property to match our desktop theme
-mkdir -p $PKG/usr/share/applications
+mkdir -p $PKG/usr/share/pixmaps/
+cp $PKG/usr/share/xombrero/xombreroicon64.png $PKG/usr/share/pixmaps/xombrero.png
sed -i -e s/xombreroicon64.png/xombrero/ $PKG/usr/share/applications/xombrero.desktop
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION