summaryrefslogtreecommitdiff
path: root/audio/aeolus/aeolus.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/aeolus/aeolus.SlackBuild')
-rw-r--r--audio/aeolus/aeolus.SlackBuild37
1 files changed, 30 insertions, 7 deletions
diff --git a/audio/aeolus/aeolus.SlackBuild b/audio/aeolus/aeolus.SlackBuild
index b6cf383f75..c6760f5b29 100644
--- a/audio/aeolus/aeolus.SlackBuild
+++ b/audio/aeolus/aeolus.SlackBuild
@@ -4,7 +4,7 @@
PRGNAM=aeolus
VERSION=${VERSION:-0.8.4}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -42,6 +42,7 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
+tar xvf $CWD/stops-0.3.0.tar.bz2
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -49,18 +50,40 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-sed -i -e 's+/usr/local+/usr+' -e '/ldconfig/d' $TMP/$PRGNAM-$VERSION/source/Makefile
+sed -i -e 's+/usr/local+/usr+' \
+ -e '/ldconfig/d' \
+ -e 's|$(LDFLAGS)|$(LDFLAGS) -ldl|g' \
+ $TMP/$PRGNAM-$VERSION/source/Makefile
+
cd $TMP/$PRGNAM-$VERSION/source/
+ CFLAGS="$SLKCFLAGS" \
+ CXXFLAGS="$SLKCFLAGS" \
+ make
+ make install DESTDIR=$PKG
+cd ..
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-make
-make install DESTDIR=$PKG
+cd stops-0.3.0
+ mkdir -p $PKG/usr/share/aeolus/stops
+ mv * $PKG/usr/share/aeolus/stops/
+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
-cd $TMP/$PRGNAM-$VERSION
+mkdir -p $PKG/usr/share/applications
+install -m0644 $CWD/aeolus.desktop $PKG/usr/share/applications/aeolus.desktop
+
+mkdir -p $PKG/usr/share/pixmaps
+install -m0644 $CWD/aeolus.png $PKG/usr/share/pixmaps/aeolus.png
+
+# set reasonable default startup options:
+# jack driver, point to stops, store presets in user home directory
+mkdir -p $PKG/etc/
+cat << EOF > $PKG/etc/aeolus.conf.new
+# Aeolus default options
+-u -J -S /usr/share/aeolus/stops
+EOF
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS COPYING INSTALL \