summaryrefslogtreecommitdiff
path: root/academic/freechartgeany/freechartgeany.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2015-12-30 18:39:47 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-12-30 18:39:47 +0700
commitfe5017026065094906bdd993eff08b2a4f5e5142 (patch)
treee91c768cbc78567dea053b5f4b4bc01955a4078a /academic/freechartgeany/freechartgeany.SlackBuild
parent4631847fad2288609c78e6c8be9fdb1fca8b3255 (diff)
downloadslackbuilds-fe5017026065094906bdd993eff08b2a4f5e5142.tar.gz
academic/freechartgeany: Updated for version 2.0.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/freechartgeany/freechartgeany.SlackBuild')
-rw-r--r--academic/freechartgeany/freechartgeany.SlackBuild20
1 files changed, 8 insertions, 12 deletions
diff --git a/academic/freechartgeany/freechartgeany.SlackBuild b/academic/freechartgeany/freechartgeany.SlackBuild
index be7b1fe5f4..52d22d3368 100644
--- a/academic/freechartgeany/freechartgeany.SlackBuild
+++ b/academic/freechartgeany/freechartgeany.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for freechartgeany
-# Copyright 2012-2013 Larry Hajali <larryhaja[at]gmail[dot]com>
+# Copyright 2012-2015 Larry Hajali <larryhaja[at]gmail[dot]com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=freechartgeany
-VERSION=${VERSION:-1.1.5}
+VERSION=${VERSION:-2.0.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -67,15 +67,10 @@ 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 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# Fix paths.
-sed -i \
- -e "/target.path/s|/usr/libexec/$PRGNAM|/usr/bin|" \
- -e "/manual.path/s|/usr/libexec/$PRGNAM|/usr/doc/${PRGNAM}-${VERSION}|" \
- FreeChartGeany.pro
-
-qmake QMAKE_CFLAGS+="$SLKCFLAGS" QMAKE_CXXFLAGS+="$SLKCFLAGS" -o Makefile FreeChartGeany.pro
+qmake QMAKE_CFLAGS+="$SLKCFLAGS" QMAKE_CXXFLAGS+="$SLKCFLAGS" \
+ -o Makefile FreeChartGeany.pro
make
make install INSTALL_ROOT=$PKG
@@ -84,13 +79,14 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# Install .desktop item and icons.
-sed -i "/^Icon/s|=.*|=${PRGNAM}|" $PRGNAM.desktop
-install -D -m 0644 $PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
+sed -i "/^Icon/s|=.*|=${PRGNAM}|" $PKG/usr/share/applications/$PRGNAM.desktop
+rm -rf $PKG/usr/share/pixmaps
for i in 16 32 64 128; do
install -D -m 0644 images/icons/logo${i}.png \
$PKG/usr/share/icons/hicolor/${i}x${i}/apps/$PRGNAM.png
done
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING images/icons/Readme.rtf licenses/* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild