aboutsummaryrefslogtreecommitdiff
path: root/development/leo/leo.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/leo/leo.SlackBuild')
-rw-r--r--development/leo/leo.SlackBuild16
1 files changed, 9 insertions, 7 deletions
diff --git a/development/leo/leo.SlackBuild b/development/leo/leo.SlackBuild
index 1c1159481bbce..f1cbb1ac1ca45 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