diff options
author | Dimitris Zlatanidis <d.zlatanidis@gmail.com> | 2014-05-07 18:10:21 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-05-12 07:35:50 +0700 |
commit | fd9006997ecc39877e86ce35cb8b2369c19a099d (patch) | |
tree | daf35a0e5bb6ba3dbbb8416c4301a81815ca4fa5 /development/leo/leo.SlackBuild | |
parent | fb0e79b11b6606f49a109b4b40e74c0a730e8864 (diff) | |
download | slackbuilds-fd9006997ecc39877e86ce35cb8b2369c19a099d.tar.gz |
development/leo: Script cleanup.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/leo/leo.SlackBuild')
-rw-r--r-- | development/leo/leo.SlackBuild | 16 |
1 files changed, 9 insertions, 7 deletions
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 |