summaryrefslogtreecommitdiff
path: root/development/geany/geany.SlackBuild
diff options
context:
space:
mode:
authorEvan Hisey <ehisey@gmail.com>2010-05-11 22:22:32 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 22:22:32 +0200
commit8f8f04a0077ecf2551959f6b587a474d6796cd46 (patch)
tree5c5f25866c9bcc7874894cb0095a9761e8dbcd91 /development/geany/geany.SlackBuild
parent5cd1d3fef06b41ca40387edd9be151c9ae52158e (diff)
downloadslackbuilds-8f8f04a0077ecf2551959f6b587a474d6796cd46.tar.gz
development/geany: Updated for version 0.14
Diffstat (limited to 'development/geany/geany.SlackBuild')
-rw-r--r--development/geany/geany.SlackBuild17
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