diff options
author | Reza Talebi <reza.talebi.73@outlook.com> | 2024-08-03 14:21:21 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-08-03 14:27:32 +0700 |
commit | a69d700fc0e0f83d910df69e68d29ec27b767437 (patch) | |
tree | d228f3d4fa3a00038bb8d3b96aa931360fd30ffc /misc | |
parent | 9c9074173f286a058ab419cccac447933021fe3a (diff) |
misc/moodbar: Added (Amarok Plugin).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/moodbar/README | 4 | ||||
-rw-r--r-- | misc/moodbar/moodbar.SlackBuild | 93 | ||||
-rw-r--r-- | misc/moodbar/moodbar.info | 10 | ||||
-rw-r--r-- | misc/moodbar/slack-desc | 19 |
4 files changed, 126 insertions, 0 deletions
diff --git a/misc/moodbar/README b/misc/moodbar/README new file mode 100644 index 000000000000..7aa2692b8ce8 --- /dev/null +++ b/misc/moodbar/README @@ -0,0 +1,4 @@ +The Moodbar is a plugin for Amarok music player that shows you +the "mood" of a track, which you can then use to figure out +when something interesting happens in the song. + diff --git a/misc/moodbar/moodbar.SlackBuild b/misc/moodbar/moodbar.SlackBuild new file mode 100644 index 000000000000..f730037415fa --- /dev/null +++ b/misc/moodbar/moodbar.SlackBuild @@ -0,0 +1,93 @@ +#!/bin/bash + +# Slackware build script for moodbar + +# Copyright 2024 Reza Talebi, Shahin Shahr, Iran. +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=moodbar +VERSION=${VERSION:-0.1.4} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i586 ;; + arm*) export ARCH=arm ;; + *) export ARCH=$( uname -m ) ;; + esac +fi + +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +else + SLKCFLAGS="-O2" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +./autogen.sh \ + --prefix=/usr \ + --disable-static + +make +make install DESTDIR=$PKG + +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 COPYING ChangeLog LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION/ +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/misc/moodbar/moodbar.info b/misc/moodbar/moodbar.info new file mode 100644 index 000000000000..087b0c529157 --- /dev/null +++ b/misc/moodbar/moodbar.info @@ -0,0 +1,10 @@ +PRGNAM="moodbar" +VERSION="0.1.4" +HOMEPAGE="https://github.com/Mazhoon/moodbar" +DOWNLOAD="https://github.com/Mazhoon/moodbar/archive/v0.1.4/moodbar-0.1.4.tar.gz" +MD5SUM="5e0d2373e2d0eb46faf5ab25179560ed" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="amarok" +MAINTAINER="Reza Talebi" +EMAIL="reza.talebi.73@outlook.com" diff --git a/misc/moodbar/slack-desc b/misc/moodbar/slack-desc new file mode 100644 index 000000000000..6a4fbe094897 --- /dev/null +++ b/misc/moodbar/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +moodbar: moodbar (Visual effects based on the mood of the song) +moodbar: +moodbar: The Moodbar is a plugin for Amarok music player that shows you +moodbar: the "mood" of a track, which you can then use to figure out +moodbar: when something interesting happens in the song. +moodbar: +moodbar: https://github.com/Mazhoon/moodbar/ +moodbar: +moodbar: +moodbar: +moodbar: |