aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIoannis Anagnostakis <rizitis@gmail.com>2025-04-01 09:52:57 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2025-04-01 10:09:37 +0700
commit57f59486004de9cd97b68034b15547911c0c939c (patch)
tree918566954bdfd55f67c66841c34ba3fc86b02e31
parent89993feaf6bd37a857266cb6dbd720a31357d762 (diff)
audio/dopamine-bin: Added (Audio Player).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--audio/dopamine-bin/README2
-rw-r--r--audio/dopamine-bin/doinst.sh13
-rw-r--r--audio/dopamine-bin/dopamine4
-rw-r--r--audio/dopamine-bin/dopamine-bin.SlackBuild86
-rw-r--r--audio/dopamine-bin/dopamine-bin.info10
-rw-r--r--audio/dopamine-bin/dopamine.desktop8
-rw-r--r--audio/dopamine-bin/slack-desc19
7 files changed, 142 insertions, 0 deletions
diff --git a/audio/dopamine-bin/README b/audio/dopamine-bin/README
new file mode 100644
index 0000000000..ee962c276a
--- /dev/null
+++ b/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.
diff --git a/audio/dopamine-bin/doinst.sh b/audio/dopamine-bin/doinst.sh
new file mode 100644
index 0000000000..aea0f894eb
--- /dev/null
+++ b/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
diff --git a/audio/dopamine-bin/dopamine b/audio/dopamine-bin/dopamine
new file mode 100644
index 0000000000..2314e3a7d2
--- /dev/null
+++ b/audio/dopamine-bin/dopamine
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+cd /opt/Dopamine || exit 1
+exec ./dopamine "$@"
diff --git a/audio/dopamine-bin/dopamine-bin.SlackBuild b/audio/dopamine-bin/dopamine-bin.SlackBuild
new file mode 100644
index 0000000000..1fb0ca1db1
--- /dev/null
+++ b/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
diff --git a/audio/dopamine-bin/dopamine-bin.info b/audio/dopamine-bin/dopamine-bin.info
new file mode 100644
index 0000000000..93859d419d
--- /dev/null
+++ b/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"
diff --git a/audio/dopamine-bin/dopamine.desktop b/audio/dopamine-bin/dopamine.desktop
new file mode 100644
index 0000000000..304082f069
--- /dev/null
+++ b/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
diff --git a/audio/dopamine-bin/slack-desc b/audio/dopamine-bin/slack-desc
new file mode 100644
index 0000000000..0ee61586fc
--- /dev/null
+++ b/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: