summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2014-05-07 18:10:21 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-05-12 07:35:50 +0700
commitfd9006997ecc39877e86ce35cb8b2369c19a099d (patch)
treedaf35a0e5bb6ba3dbbb8416c4301a81815ca4fa5
parentfb0e79b11b6606f49a109b4b40e74c0a730e8864 (diff)
downloadslackbuilds-fd9006997ecc39877e86ce35cb8b2369c19a099d.tar.gz
development/leo: Script cleanup.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--development/leo/doinst.sh10
-rw-r--r--development/leo/leo.SlackBuild16
-rw-r--r--development/leo/leo.info4
3 files changed, 11 insertions, 19 deletions
diff --git a/development/leo/doinst.sh b/development/leo/doinst.sh
index ff4c9b763a..473345de20 100644
--- a/development/leo/doinst.sh
+++ b/development/leo/doinst.sh
@@ -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
diff --git a/development/leo/leo.SlackBuild b/development/leo/leo.SlackBuild
index 1c1159481b..f1cbb1ac1c 100644
--- a/development/leo/leo.SlackBuild
+++ b/development/leo/leo.SlackBuild
@@ -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
diff --git a/development/leo/leo.info b/development/leo/leo.info
index 95a2fa266a..353084e90c 100644
--- a/development/leo/leo.info
+++ b/development/leo/leo.info
@@ -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"