summaryrefslogtreecommitdiffstats
path: root/source/ap/soma
diff options
context:
space:
mode:
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