summaryrefslogtreecommitdiffstats
path: root/source/ap/soma
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2016-06-30 20:26:57 +0000
committer Eric Hameleers <alien@slackware.com>2018-05-31 23:31:18 +0200
commitd31c50870d0bee042ce660e445c9294a59a3a65b (patch)
tree6bfc0de3c95267b401b620c2c67859557dc60f97 /source/ap/soma
parent76fc4757ac91ac7947a01fb7b53dddf9a78a01d1 (diff)
downloadcurrent-d31c50870d0bee042ce660e445c9294a59a3a65b.tar.gz
current-d31c50870d0bee042ce660e445c9294a59a3a65b.tar.xz
Slackware 14.2slackware-14.2
Thu Jun 30 20:26:57 UTC 2016 Slackware 14.2 x86_64 stable is released! The long development cycle (the Linux community has lately been living in "interesting times", as they say) is finally behind us, and we're proud to announce the release of Slackware 14.2. The new release brings many updates and modern tools, has switched from udev to eudev (no systemd), and adds well over a hundred new packages to the system. Thanks to the team, the upstream developers, the dedicated Slackware community, and everyone else who pitched in to help make this release a reality. The ISOs are off to be replicated, a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. Please consider supporting the Slackware project by picking up a copy from store.slackware.com. We're taking pre-orders now, and offer a discount if you sign up for a subscription. Have fun! :-)
Diffstat (limited to 'source/ap/soma')
-rw-r--r--source/ap/soma/doinst.sh17
-rw-r--r--source/ap/soma/slack-desc6
-rwxr-xr-xsource/ap/soma/soma.SlackBuild14
3 files changed, 26 insertions, 11 deletions
diff --git a/source/ap/soma/doinst.sh b/source/ap/soma/doinst.sh
new file mode 100644
index 000000000..7ddbdb96c
--- /dev/null
+++ b/source/ap/soma/doinst.sh
@@ -0,0 +1,17 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/soma/dialogrc.new
+config etc/soma/stations.conf.new
+config etc/soma/options.conf.new
+
diff --git a/source/ap/soma/slack-desc b/source/ap/soma/slack-desc
index bc1725a6c..433f71963 100644
--- a/source/ap/soma/slack-desc
+++ b/source/ap/soma/slack-desc
@@ -6,10 +6,10 @@
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
-soma: Soma - a command line/dialog internet radio player
+soma: Soma (a command line/dialog internet radio player)
soma:
-soma: Soma is a frontend for mplayer to play radio playlists pls,m3u and
-soma: ram. More will be added as it progresses.
+soma: Soma is a frontend for mplayer to play radio playlists pls, m3ui, and
+soma: ram. More will be added as it progresses.
soma:
soma: Homepage: http://www.dawoodfall.net/slackbuilds/noversion/soma
soma:
diff --git a/source/ap/soma/soma.SlackBuild b/source/ap/soma/soma.SlackBuild
index c7cc38ae6..7f837d5d4 100755
--- a/source/ap/soma/soma.SlackBuild
+++ b/source/ap/soma/soma.SlackBuild
@@ -23,15 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PKGNAM=soma
-VERSION=${VERSION:-2.8.5}
+VERSION=${VERSION:-2.10.4}
ARCH=noarch
BUILD=${BUILD:-1}
-TAG=${TAG:-}
CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-$PKGNAM
-OUTPUT=${OUTPUT:-/tmp}
set -e
@@ -51,17 +49,17 @@ find . \
mkdir -p $PKG/usr/bin $PKG/etc/soma $PKG/install $PKG/usr/doc/$PKGNAM-$VERSION
install -m 755 soma $PKG/usr/bin/soma
-install --m 644 options.conf $PKG/etc/soma
-install --m 644 stations.conf $PKG/etc/soma
-install --m 644 dialogrc $PKG/etc/soma
+install --m 644 options.conf $PKG/etc/soma/options.conf.new
+install --m 644 stations.conf $PKG/etc/soma/stations.conf.new
+install --m 644 dialogrc $PKG/etc/soma/dialogrc.new
cp -a \
README \
$PKG/usr/doc/$PKGNAM-$VERSION
-#cat $CWD/$PKGNAM.SlackBuild > $PKG/usr/doc/$PKGNAM-$VERSION/$PKGNAM.SlackBuild
cat $CWD/slack-desc > $PKG/install/slack-desc
+zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PKGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}
+/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz