Browse Source

audio/dopamine-bin: Added (Audio Player).

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
pull/288/head
Ioannis Anagnostakis 6 months ago
committed by Willy Sudiarto Raharjo
parent
commit
57f5948600
No known key found for this signature in database GPG Key ID: 3F617144D7238786
  1. 2
      audio/dopamine-bin/README
  2. 13
      audio/dopamine-bin/doinst.sh
  3. 4
      audio/dopamine-bin/dopamine
  4. 86
      audio/dopamine-bin/dopamine-bin.SlackBuild
  5. 10
      audio/dopamine-bin/dopamine-bin.info
  6. 8
      audio/dopamine-bin/dopamine.desktop
  7. 19
      audio/dopamine-bin/slack-desc

2
audio/dopamine-bin/README

@ -0,0 +1,2 @@
Dopamine is an audio player which tries to make organizing and
listening to music as simple and pretty as possible.

13
audio/dopamine-bin/doinst.sh

@ -0,0 +1,13 @@
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 -f usr/share/icons/hicolor >/dev/null 2>&1
fi
fi

4
audio/dopamine-bin/dopamine

@ -0,0 +1,4 @@
#!/bin/bash
cd /opt/Dopamine || exit 1
exec ./dopamine "$@"

86
audio/dopamine-bin/dopamine-bin.SlackBuild

@ -0,0 +1,86 @@
#!/bin/bash
# Slackware build script for dopamine-bin
# 2025 Ioannis Anagnostakis GR
#
# 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=dopamine-bin
SRCNAM=Dopamine-3.0.0-preview.37
VERSION=${VERSION:-3.0.0.37}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) 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}
set -e
rm -rf $PKG
rm -rf $TMP/squashfs-root || true
mkdir -p $TMP "$PKG"/opt/Dopamine $OUTPUT
pushd $TMP || exit
unsquashfs "$CWD"/"$SRCNAM".snap
cp -R squashfs-root/* "$PKG"/opt/Dopamine/
popd || exit
mkdir -p $PKG/usr/bin
cat $CWD/dopamine > $PKG/usr/bin/dopamine
chmod +x $PKG/usr/bin/dopamine
mkdir -p $PKG/usr/share/applications
cp $CWD/dopamine.desktop $PKG/usr/share/applications/
chmod 0644 $PKG/usr/share/applications/dopamine.desktop
rm -rf $PKG/opt/Dopamine/{data-dir,gnome-platform,scripts}
find $PKG/opt/Dopamine/ -type f -name "*.so*" -exec chmod 755 {} \;
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
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg --remove-tmp-rpaths -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE

10
audio/dopamine-bin/dopamine-bin.info

@ -0,0 +1,10 @@
PRGNAM="dopamine-bin"
VERSION="3.0.0.37"
HOMEPAGE="https://digimezzo.github.io/site/"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
DOWNLOAD_x86_64="https://github.com/digimezzo/dopamine/releases/download/v3.0.0-preview.37/Dopamine-3.0.0-preview.37.snap"
MD5SUM_x86_64="7d499127e3f9ce2ce4decef1aafb42ca"
REQUIRES=""
MAINTAINER="Ioannis Anagnostakis"
EMAIL="rizitis@gmail.com"

8
audio/dopamine-bin/dopamine.desktop

@ -0,0 +1,8 @@
[Desktop Entry]
Name=Dopamine 3
Exec=dopamine %U
Terminal=false
Type=Application
Icon=/opt/Dopamine/meta/gui/icon.png
Comment=Audio player
Categories=AudioVideo;Player

19
audio/dopamine-bin/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------------------------------------------------------|
dopamine-bin: dopamine-bin (audio player)
dopamine-bin:
dopamine-bin: Dopamine is an elegant audio player which tries to make
dopamine-bin: organizing and listening to music as simple and pretty as
dopamine-bin: possible. This version is written using Electron,
dopamine-bin: Angular and Typescript.
dopamine-bin:
dopamine-bin: HomePage: https://digimezzo.github.io/site/
dopamine-bin: ProjectPage: https://github.com/digimezzo/dopamine
dopamine-bin:
dopamine-bin:
Loading…
Cancel
Save