diff options
author | Edinaldo P. Silva <edps.mundognu@gmail.com> | 2018-03-09 23:10:56 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-03-10 07:11:05 +0700 |
commit | 03c084a5cff4c85bfdf122898cbb20381199848f (patch) | |
tree | c7dcd6f0b988cb844634ea8ab4f1e3f583b641a3 /audio/museeks/museeks.SlackBuild | |
parent | 3ece0fa185f07dbf644f9b59c1cee0eda158bc33 (diff) |
audio/museeks: Updated for version 0.9.0.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'audio/museeks/museeks.SlackBuild')
-rw-r--r-- | audio/museeks/museeks.SlackBuild | 65 |
1 files changed, 19 insertions, 46 deletions
diff --git a/audio/museeks/museeks.SlackBuild b/audio/museeks/museeks.SlackBuild index cfb45bbeb04b8..71f10ffd358ab 100644 --- a/audio/museeks/museeks.SlackBuild +++ b/audio/museeks/museeks.SlackBuild @@ -2,7 +2,7 @@ # # Slackware build script for museeks. # -# Copyright 2017 Edinaldo P. Silva, Rio de Janeiro, Brazil. +# Copyright 2017-2018 Edinaldo P. Silva, Rio de Janeiro, Brazil. # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=museeks -VERSION=${VERSION:-0.8.1} +VERSION=${VERSION:-0.9.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -35,41 +35,26 @@ if [ -z "$ARCH" ]; then esac fi +case "$ARCH" in + i?86) BITS="i386" ;; + x86_64) BITS="amd64" ;; + arm*) BITS="armhf" ;; + *) echo "$ARCH is not supported." + exit 1 ;; +esac + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - set -e -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP - -rm -rf $PRGNAM-$VERSION -if [ "$ARCH" = "x86_64" ]; then - unzip $CWD/$PRGNAM-linux-x64.zip - mv $PRGNAM-linux-x64 $PRGNAM-$VERSION -else - unzip $CWD/$PRGNAM-linux-ia32.zip - mv $PRGNAM-linux-ia32 $PRGNAM-$VERSION -fi +rm -rf $PKG $TMP/$PRGNAM +mkdir -p $TMP/$PRGNAM $PKG $OUTPUT -cd $PRGNAM-$VERSION +cd $TMP/$PRGNAM +ar p $CWD/${PRGNAM}-${BITS}.deb data.tar.xz | tar xvJ chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -80,25 +65,13 @@ find -L . \ 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 -install -dm755 $PKG/usr/share/$PRGNAM -install -dm755 $PKG/usr/bin - -install -Dm755 Museeks $PKG/usr/share/$PRGNAM/ -install -Dm644 {blink_image_resources_200_percent.pak,content_resources_200_percent.pak,\ -content_shell.pak,icudtl.dat,libffmpeg.so,libnode.so,natives_blob.bin,snapshot_blob.bin,\ -ui_resources_200_percent.pak,version,views_resources_200_percent.pak} $PKG/usr/share/$PRGNAM/ - -cp -a {locales,resources} $PKG/usr/share/$PRGNAM/ - -( - ln -s /usr/share/$PRGNAM/Museeks $PKG/usr/bin/$PRGNAM -) - -install -Dm644 resources/app/src/images/logos/museeks.png $PKG/usr/share/pixmaps/$PRGNAM.png -install -Dm644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop +mv opt usr $PKG/ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a LICENSE LICENSES.chromium.html $PKG/usr/doc/$PRGNAM-$VERSION +gzip -dc $PKG/usr/share/doc/$PRGNAM/changelog.gz > \ + $PKG/usr/doc/$PRGNAM-$VERSION/ChangeLog +rm -rf $PKG/usr/share/doc +mv $PKG/opt/Museeks/LICENSE* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |