diff options
Diffstat (limited to 'academic/freechartgeany/freechartgeany.SlackBuild')
-rw-r--r-- | academic/freechartgeany/freechartgeany.SlackBuild | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/academic/freechartgeany/freechartgeany.SlackBuild b/academic/freechartgeany/freechartgeany.SlackBuild index be7b1fe5f4c25..52d22d33684c5 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 |