development/leo: Script cleanup.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Dimitris Zlatanidis 2014-05-07 18:10:21 +07:00 committed by Willy Sudiarto Raharjo
parent fb0e79b11b
commit fd9006997e
3 changed files with 11 additions and 19 deletions

View file

@ -1,13 +1,3 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
if [ -x /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
fi
fi

View file

@ -23,8 +23,10 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=leo
VERSION=${VERSION:-4.11-final}
BUILD=${BUILD:-1}
SRCNAM=Leo
SRCVER=${SRCVER:-4.11-final}
VERSION=$(echo $SRCVER | tr - .)
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -59,9 +61,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
unzip $CWD/$PRGNAM-$VERSION.zip
cd $PRGNAM-$VERSION
rm -rf $SRCNAM-$SRCVER
unzip $CWD/$SRCNAM-$SRCVER.zip
cd $SRCNAM-$SRCVER
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -75,13 +77,13 @@ mkdir -p $PKG/usr/share/applications
install -D -m644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
mkdir -p $PKG/usr/share/pixmaps/
install -D -m644 leo/Icons/LeoApp.ico $PKG/usr/share/pixmaps/$PRGNAM.svg
install -D -m644 leo/Icons/${PRGNAM}app32.png $PKG/usr/share/pixmaps/$PRGNAM.png
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a INSTALL.TXT PKG-INFO LICENSE.TXT $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README.TXT LICENSE.TXT $PRGNAM/doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View file

@ -1,8 +1,8 @@
PRGNAM="leo"
VERSION="4.11"
HOMEPAGE="http://leoeditor.com"
DOWNLOAD="https://pypi.python.org/packages/source/l/leo/leo-4.11-final.zip"
MD5SUM="8366e2eb0ca67a398d149cd62d8d4990"
DOWNLOAD="http://sourceforge.net/projects/leo/files/Leo/4.11-final/Leo-4.11-final.zip"
MD5SUM="2e68122eb0ecb8d9efe3fba7f3b0360b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="pysetuptools"