audio/python-audiotools: Updated for version 2.22.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Nishant Limbachia 2014-09-25 17:06:48 +07:00 committed by Willy Sudiarto Raharjo
parent 4034ec33c2
commit e188c623a9
3 changed files with 5 additions and 22 deletions

View file

@ -1,15 +0,0 @@
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/audiotools.cfg.new

View file

@ -3,7 +3,7 @@
# Slackware build script for Python Audio Tools # Slackware build script for Python Audio Tools
# Home Page: http://audiotools.sourceforge.net/ # Home Page: http://audiotools.sourceforge.net/
# Copyright (c) 2010-2013, Nishant Limbachia, Hoffman Estates, IL, USA # Copyright (c) 2010-2014, Nishant Limbachia, Hoffman Estates, IL, USA
# <nishant _AT_ mnspace _DOT_ net> # <nishant _AT_ mnspace _DOT_ net>
# All rights reserved. # All rights reserved.
@ -26,7 +26,7 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM="python-audiotools" PRGNAM="python-audiotools"
VERSION=${VERSION:-2.20} VERSION=${VERSION:-2.22}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
@ -80,7 +80,6 @@ python setup.py install --root=$PKG
mkdir -p $PKG/usr/man/man{1,5} mkdir -p $PKG/usr/man/man{1,5}
( cd docs; make install MAN_PATH=$PKG/usr/man ) ( cd docs; make install MAN_PATH=$PKG/usr/man )
mv $PKG/etc/audiotools.cfg $PKG/etc/audiotools.cfg.new
find $PKG/usr/man -type f -exec gzip -9 {} \; find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
@ -88,7 +87,6 @@ cp -a COPYING INSTALL TODO $PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKG/install mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -1,8 +1,8 @@
PRGNAM="python-audiotools" PRGNAM="python-audiotools"
VERSION="2.20" VERSION="2.22"
HOMEPAGE="http://audiotools.sourceforge.net/" HOMEPAGE="http://audiotools.sourceforge.net/"
DOWNLOAD="http://downloads.sourceforge.net/audiotools/audiotools-2.20.tar.gz" DOWNLOAD="http://downloads.sourceforge.net/audiotools/audiotools-2.22.tar.gz"
MD5SUM="a295105ad23689bdecd3952aa8736302" MD5SUM="8e373a6c8caf4d55bcd501c5ab6ea555"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="" REQUIRES=""