summaryrefslogtreecommitdiff
path: root/audio/clockchimes/clockchimes.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/clockchimes/clockchimes.SlackBuild')
-rw-r--r--audio/clockchimes/clockchimes.SlackBuild63
1 files changed, 33 insertions, 30 deletions
diff --git a/audio/clockchimes/clockchimes.SlackBuild b/audio/clockchimes/clockchimes.SlackBuild
index 6abc4603dc..92c10405b7 100644
--- a/audio/clockchimes/clockchimes.SlackBuild
+++ b/audio/clockchimes/clockchimes.SlackBuild
@@ -23,37 +23,17 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=clockchimes
-VERSION=${VERSION:-0.2}
+VERSION=${VERSION:-0.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) ARCH=i586 ;;
- arm*) ARCH=arm ;;
- *) ARCH=$( uname -m ) ;;
- esac
-fi
+ARCH=noarch
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
-else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
-fi
-
set -e
rm -rf $PKG
@@ -69,18 +49,41 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a CHANGELOG README $PKG/usr/doc/$PRGNAM-$VERSION/
+mkdir -p $PKG/etc/cron.d
+cp -a \
+ clockchimes.new \
+ $PKG/etc/cron.d/
+cp -a \
+ clockchimes.conf.new \
+ $PKG/etc/
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/kde
+cp -a \
+ kde/* \
+ $PKG/usr/doc/$PRGNAM-$VERSION/kde
+cp -a \
+ CHANGELOG \
+ README \
+ $PKG/usr/doc/$PRGNAM-$VERSION/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-mkdir -p $PKG/usr/share/sounds/$PRGNAM/westminster
-cp -a westminster/* $PKG/usr/share/sounds/$PRGNAM/westminster
+mkdir -p $PKG/usr/bin
+cp -a \
+ clockchimes \
+ $PKG/usr/bin/
-mkdir -p $PKG/etc
-cp -a clockchimes.conf.new $PKG/etc/
+mkdir -p $PKG/usr/libexec/$PRGNAM
+cp -a \
+ libexec/* \
+ $PKG/usr/libexec/$PRGNAM/
-mkdir -p $PKG/usr/bin
-cp -a clockchimes $PKG/usr/bin/
+for ARG in avemaria westminster whittington voice
+ do
+ mkdir -p $PKG/usr/share/sounds/$PRGNAM/$ARG
+ cp -a \
+ sounds/$ARG/* \
+ $PKG/usr/share/sounds/$PRGNAM/$ARG
+ done
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc