diff options
author | Ronny Schmatzler <schmatzler@hirnschwund.net> | 2012-05-21 14:17:13 -0400 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2012-05-21 17:58:15 -0500 |
commit | f11df27d2fcf19e6092f51204507459e65feaacc (patch) | |
tree | b8b065f704a0cfafb4d5e761544f58bb52507909 /misc/kde_cdemu/kde_cdemu.SlackBuild | |
parent | 70bb8c7b6094a03295b3defac36de0562db2da78 (diff) | |
download | slackbuilds-f11df27d2fcf19e6092f51204507459e65feaacc.tar.gz |
misc/kde_cdemu: Added (frontend for CDEmu.)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'misc/kde_cdemu/kde_cdemu.SlackBuild')
-rw-r--r-- | misc/kde_cdemu/kde_cdemu.SlackBuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/misc/kde_cdemu/kde_cdemu.SlackBuild b/misc/kde_cdemu/kde_cdemu.SlackBuild new file mode 100644 index 0000000000..a6891f4fcf --- /dev/null +++ b/misc/kde_cdemu/kde_cdemu.SlackBuild @@ -0,0 +1,58 @@ +#!/bin/sh + +# Slackware build script for kde_cdemu + +# Written by Ronny Schmatzler <schmatzler@hirnschwund.net> + +# Based on http://slackbuilds.org/template.SlackBuild + +PRGNAM=kde_cdemu +VERSION=${VERSION:-0.4} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + *) export ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM +tar xjvf $CWD/99752-$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM +chown -R root:root . +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 {} \; + +cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` . +make +make install DESTDIR=$PKG + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" \ + | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +install -m0644 -oroot ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION +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/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |