development/scite: Updated for version 2.01
This commit is contained in:
parent
c3e3716052
commit
42d70a6379
|
@ -0,0 +1,3 @@
|
|||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||
fi
|
|
@ -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}
|
||||
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
PRGNAM="scite"
|
||||
VERSION="1.77"
|
||||
VERSION="2.01"
|
||||
HOMEPAGE="http://scintilla.org/SciTE.html"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/scintilla/scite177.tgz"
|
||||
MD5SUM="ba016919190c12cfb712e1f004df4187"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/scintilla/scite201.tgz"
|
||||
MD5SUM="ef4b6b4d903c29e4ab511488a0d20f46"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Iskar Enev"
|
||||
EMAIL="iskar.enev@gmail.com"
|
||||
EMAIL="<iskar.enev[@]gmail.com>"
|
||||
APPROVED="dsomero"
|
Loading…
Reference in New Issue