summaryrefslogtreecommitdiff
path: root/development/scite/scite.SlackBuild
diff options
context:
space:
mode:
authorIskar Enev <iskar.enev[@]gmail.com>2010-05-13 00:25:31 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:25:31 +0200
commit42d70a6379eee5527a104d4c37912792c6c0ff4c (patch)
treeaff2fbb60db02841920dae9bda05a87bac146f15 /development/scite/scite.SlackBuild
parentc3e3716052265464f217ab6df9fe202a54b418ea (diff)
downloadslackbuilds-42d70a6379eee5527a104d4c37912792c6c0ff4c.tar.gz
development/scite: Updated for version 2.01
Diffstat (limited to 'development/scite/scite.SlackBuild')
-rw-r--r--development/scite/scite.SlackBuild16
1 files changed, 11 insertions, 5 deletions
diff --git a/development/scite/scite.SlackBuild b/development/scite/scite.SlackBuild
index 6a9343b42c..a6997f386e 100644
--- a/development/scite/scite.SlackBuild
+++ b/development/scite/scite.SlackBuild
@@ -3,7 +3,7 @@
# Written by Iskar Enev <iskar.enev[@]gmail.com>
PRGNAM=scite
-VERSION=1.77
+VERSION=2.01
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -15,10 +15,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -40,7 +43,6 @@ make prefix=/usr
cd $TMP/scite/gtk
sed -i "s%CXXBASEFLAGS=-W -Wall -Wno-char-subscripts -pedantic -Os %CXXBASEFLAGS=-W -Wall -Wno-char-subscripts -pedantic %" makefile
sed -i "s%CXXTFLAGS=-DNDEBUG -Os %CXXTFLAGS=-DNDEBUG $SLKCFLAGS %" makefile
-sed -i "s%INSTALL=install -o root -g root%INSTALL=install%" makefile
make prefix=/usr
make install DESTDIR=$PKG
@@ -48,8 +50,10 @@ make install DESTDIR=$PKG
( cd $PKG/usr/bin ; ln -sf SciTE scite )
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
cd $TMP/scite
@@ -64,6 +68,8 @@ cat doc/scite.1 | gzip -9c > $PKG/usr/man/man1/scite.1.gz
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+