aboutsummaryrefslogtreecommitdiff
path: root/audio/Pd-extended/Pd-extended.SlackBuild
diff options
context:
space:
mode:
authorFelix Pfeifer <pfeifer[dot]felix[at]googlemail[dot]com>2011-10-10 02:42:09 -0500
committerRobby Workman <rworkman@slackbuilds.org>2011-10-10 02:42:09 -0500
commit8d80f42e125bdaadccdf4f1d44e49b363e8ead66 (patch)
treefda80a10dd60149dc3df865f67a846fac2c607a3 /audio/Pd-extended/Pd-extended.SlackBuild
parent7fc7de8808cabfc22347ad9ca0c51600a2d49550 (diff)
audio/Pd-extended: various cleanups and enhancements
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'audio/Pd-extended/Pd-extended.SlackBuild')
-rw-r--r--audio/Pd-extended/Pd-extended.SlackBuild40
1 files changed, 23 insertions, 17 deletions
diff --git a/audio/Pd-extended/Pd-extended.SlackBuild b/audio/Pd-extended/Pd-extended.SlackBuild
index 238d93e04de70..104ed7fb758d3 100644
--- a/audio/Pd-extended/Pd-extended.SlackBuild
+++ b/audio/Pd-extended/Pd-extended.SlackBuild
@@ -11,7 +11,7 @@ BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
SRCNAM=Pd
-SRCVER=0.42.5-extended
+SRCVER=$VERSION-extended
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -64,30 +64,36 @@ patch -p1 < $CWD/Makefile.diff
patch -p1 < $CWD/Pd-extended_libquicktime122.patch
cd packages/linux_make
-make install \
- prefix="/usr" \
- libdir="/usr/lib$LIBDIRSUFFIX" \
- mandir="/usr/man" \
- DOC_TARGETS="media messageoddness pd_fileformat pd-msg pddp tutorials" \
- DESTDIR=$PKG
+ make install \
+ prefix="/usr" \
+ libdir="/usr/lib$LIBDIRSUFFIX" \
+ mandir="/usr/man" \
+ DOC_TARGETS="media messageoddness pd_fileformat pd-msg pddp tutorials" \
+ DESTDIR=$PKG
+cd ../..
find $PKG | xargs 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
-cp -a \
- $TMP/$SRCNAM-$SRCVER/doc/* $TMP/$SRCNAM-$SRCVER/packages/gpl-3.0.txt \
- $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/example.pdextended > $PKG/usr/doc/$PRGNAM-$VERSION/example.pdextended
-cat $CWD/Pd-extended.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM-extended.SlackBuild
+if [ "$ARCH" = "x86_64" ]; then
+ echo '#!/bin/sh' > $PKG/usr/bin/pdextended64
+ echo 'cd /usr/lib64/pd-extended/bin' >> $PKG/usr/bin/pdextended64
+ echo '../pd' >> $PKG/usr/bin/pdextended64
+ chmod 755 $PKG/usr/bin/pdextended64
+fi
# Seems Pd can't make their mind up how they want to be called,
-#(Pd/pd or Pd/pd-extended), so we're hardcoding the files here.
+# (Pd/pd or Pd/pd-extended), so we're hardcoding the files here.
mkdir -p $PKG/usr/share/{applications,pixmaps,mime/packages}
-cat $TMP/$SRCNAM-$SRCVER/packages/linux_make/pd-extended.desktop > $PKG/usr/share/applications/pd-extended.desktop
-cat $TMP/$SRCNAM-$SRCVER/packages/linux_make/pd.png > $PKG/usr/share/pixmaps/pd.png
-cat $TMP/$SRCNAM-$SRCVER/packages/linux_make/pd-extended.xml > $PKG/usr/share/mime/packages/pd-extended.xml
+cat packages/linux_make/pd-extended.desktop > $PKG/usr/share/applications/pd-extended.desktop
+cat packages/linux_make/pd.png > $PKG/usr/share/pixmaps/pd.png
+cat packages/linux_make/pd-extended.xml > $PKG/usr/share/mime/packages/pd-extended.xml
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a doc/* packages/gpl-3.0.txt $PKG/usr/doc/$PRGNAM-$VERSION
+sed "s,/usr/lib/,/usr/lib${LIBDIRSUFFIX}/,g" $CWD/example.pdextended \
+ > $PKG/usr/doc/$PRGNAM-$VERSION/example.pdextended
+cat $CWD/Pd-extended.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM-extended.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh