summaryrefslogtreecommitdiff
path: root/audio/muse/muse.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-09-13 18:30:08 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-09-13 17:56:49 -0500
commit8166c80745f927ac4d2e78ea2bab5b0c39c4ba70 (patch)
treec50e204c02c4344abb8874a36b1bf7b93e741948 /audio/muse/muse.SlackBuild
parent5e4bf88eb64916d89d3eff61348e17f58c39b08d (diff)
downloadslackbuilds-8166c80745f927ac4d2e78ea2bab5b0c39c4ba70.tar.gz
audio/muse: Updated for version 2.0
Also added the optional dependency lash. Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'audio/muse/muse.SlackBuild')
-rw-r--r--audio/muse/muse.SlackBuild33
1 files changed, 18 insertions, 15 deletions
diff --git a/audio/muse/muse.SlackBuild b/audio/muse/muse.SlackBuild
index 06bee0dd78..0cb56bc0a5 100644
--- a/audio/muse/muse.SlackBuild
+++ b/audio/muse/muse.SlackBuild
@@ -5,7 +5,7 @@
# Written by Felix Pfeifer pfeifer[dot]felix[at]googlemail[dot]com
PRGNAM=muse
-VERSION=${VERSION:-1.1}
+VERSION=${VERSION:-2.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -51,26 +51,29 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --build=$ARCH-slackware-linux
-
-make
-make install DESTDIR=$PKG
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_SUFFIX=${LIBDIRSUFFIX} \
+ -DENABLE_PYTHON:STRING="ON" \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install DESTDIR=$PKG
+cd ..
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
+mv $PKG/usr/share/man $PKG/usr/man
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- AUTHORS COPYING ChangeLog INSTALL NEWS README* SECURITY \
+ AUTHORS COPYING ChangeLog NEWS README* SECURITY \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild