diff options
Diffstat (limited to 'development/geany/geany.SlackBuild')
-rw-r--r-- | development/geany/geany.SlackBuild | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/development/geany/geany.SlackBuild b/development/geany/geany.SlackBuild index acbc105f79..fed8e1b920 100644 --- a/development/geany/geany.SlackBuild +++ b/development/geany/geany.SlackBuild @@ -4,15 +4,14 @@ # Written by Evan Hisey <ehisey@gmail.com> # Modified by Robby Workman <rworkman@slackbuilds.org> - -# Exit on most errors -set -e +# Modified by Michiel v. Wessem <michiel@slackbuilds.org> PRGNAM=geany -VERSION=0.13 +VERSION=0.14 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -22,13 +21,17 @@ if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" fi +set -e # Exit on most errors + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . @@ -57,10 +60,8 @@ make install DESTDIR=$PKG for i in $(find . -type l) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done ) - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -mv $PKG/usr/share/{geany/GPL-2,doc/geany/*} $PKG/usr/doc/$PRGNAM-$VERSION -rm -rf $PKG/usr/share/doc +mv $PKG/usr/share/geany/GPL-2 $PKG/usr/doc/$PRGNAM-$VERSION cp -a INSTALL THANKS $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |