mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
audio/mpdscribble: Updated for version 0.17
This commit is contained in:
parent
36116968c0
commit
ffa5085cc2
4 changed files with 59 additions and 21 deletions
15
audio/mpdscribble/doinst.sh
Normal file
15
audio/mpdscribble/doinst.sh
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
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/mpdscribble.conf.new
|
||||||
|
|
|
@ -1,16 +1,14 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Slackware build script for mpdscribble
|
# Slackware build script for mpdscribble
|
||||||
# Written by Erik Hanson erik@slackbuilds.org
|
# Written by Erik Hanson erik@slackbuilds.org
|
||||||
|
|
||||||
set -eu
|
|
||||||
|
|
||||||
PRGNAM=mpdscribble
|
PRGNAM=mpdscribble
|
||||||
VERSION=0.2.12
|
VERSION=0.17
|
||||||
ARCH=${ARCH:-i486}
|
ARCH=${ARCH:-i486}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
CWD=`pwd`
|
|
||||||
|
CWD=$(pwd)
|
||||||
TMP=${TMP:-/tmp/SBo}
|
TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
@ -19,16 +17,24 @@ if [ "$ARCH" = "i486" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||||
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
|
SLKCFLAGS="-O2 -fPIC"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
|
||||||
rm -rf $PKG
|
rm -rf $PKG
|
||||||
mkdir -p $TMP $PKG
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP
|
cd $TMP
|
||||||
rm -rf $PRGNAM-$VERSION
|
rm -rf $PRGNAM-$VERSION
|
||||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||||
cd $PRGNAM-$VERSION
|
cd $PRGNAM-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
chmod -R u+w,go+r-w,a-s .
|
find . \
|
||||||
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||||
|
-exec chmod 755 {} \; -o \
|
||||||
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||||
|
-exec chmod 644 {} \;
|
||||||
|
|
||||||
CFLAGS="$SLKCFLAGS" \
|
CFLAGS="$SLKCFLAGS" \
|
||||||
./configure \
|
./configure \
|
||||||
|
@ -36,18 +42,27 @@ CFLAGS="$SLKCFLAGS" \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--localstatedir=/var/lib \
|
--localstatedir=/var/lib \
|
||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--disable-static
|
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||||
|
--build=$ARCH-slackware-linux
|
||||||
|
|
||||||
make
|
make
|
||||||
make install-strip DESTDIR=$PKG
|
make install-strip DESTDIR=$PKG
|
||||||
|
|
||||||
gzip -9 $PKG/usr/man/man?/*.?
|
( cd $PKG/usr/man
|
||||||
|
find . -type f -exec gzip -9 {} \;
|
||||||
|
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
|
||||||
|
)
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION $PKG/install
|
# Don't clobber the config file
|
||||||
cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README TODO \
|
mv $PKG/etc/mpdscribble.conf $PKG/etc/mpdscribble.conf.new
|
||||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
|
||||||
|
# Add some missed docs
|
||||||
|
cp -a COPYING INSTALL $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
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/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.tgz
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
PRGNAM="mpdscribble"
|
PRGNAM="mpdscribble"
|
||||||
VERSION="0.2.12"
|
VERSION="0.17"
|
||||||
HOMEPAGE="http://www.frob.nl/scribble.html"
|
HOMEPAGE="http://mpd.wikia.com/wiki/Client:Mpdscribble"
|
||||||
DOWNLOAD="http://www.frob.nl/projects/scribble/mpdscribble-0.2.12.tar.gz"
|
DOWNLOAD="http://downloads.sourceforge.net/musicpd/mpdscribble-0.17.tar.gz"
|
||||||
MD5SUM="7f0e976e7a066df0ddf21f3f4041ef6a"
|
MD5SUM="ea6a0197f638443366c412cafd0a99ba"
|
||||||
MAINTAINER="Erik Hanson"
|
MAINTAINER="Erik Hanson"
|
||||||
EMAIL="erik@slackbuilds.org"
|
EMAIL="erik@slackbuilds.org"
|
||||||
APPROVED="David Somero"
|
APPROVED="dsomero"
|
||||||
|
|
|
@ -1,11 +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 ':'.
|
||||||
|
|
||||||
|
|-----handy-ruler-------------------------------------------------|
|
||||||
mpdscribble: mpdscribble (audioscrobbler daemon for mpd)
|
mpdscribble: mpdscribble (audioscrobbler daemon for mpd)
|
||||||
mpdscribble:
|
mpdscribble:
|
||||||
mpdscribble: mpdscribble is a music player daemon client which submits
|
mpdscribble: mpdscribble is a music player daemon client which submits
|
||||||
mpdscribble: information about tracks being played to audioscrobbler.
|
mpdscribble: information about tracks being played to audioscrobbler.
|
||||||
mpdscribble:
|
mpdscribble:
|
||||||
mpdscribble:
|
|
||||||
mpdscribble:
|
|
||||||
mpdscribble:
|
|
||||||
mpdscribble:
|
|
||||||
mpdscribble: http://www.frob.nl/scribble.html
|
mpdscribble: http://www.frob.nl/scribble.html
|
||||||
mpdscribble:
|
mpdscribble:
|
||||||
|
mpdscribble:
|
||||||
|
mpdscribble:
|
||||||
|
mpdscribble:
|
||||||
|
mpdscribble:
|
||||||
|
|
Loading…
Reference in a new issue