aboutsummaryrefslogtreecommitdiff
path: root/audio/pd/pd.SlackBuild
diff options
context:
space:
mode:
authorMichales Michaloudes <korgie@gmail.com>2020-04-10 00:20:21 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-04-10 00:20:21 +0700
commit589ac32f7eab9ca71ebf102dcc48874de43cb5af (patch)
tree3d10d97f9623900f853e62ac24a8b02b299b209c /audio/pd/pd.SlackBuild
parent8f1295947bf671201d1418c213f116b8d3e003e7 (diff)
audio/pd: Updated for version 0.50_2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/pd/pd.SlackBuild')
-rw-r--r--audio/pd/pd.SlackBuild16
1 files changed, 12 insertions, 4 deletions
diff --git a/audio/pd/pd.SlackBuild b/audio/pd/pd.SlackBuild
index 977741b4f620..b2bfd8cefcd6 100644
--- a/audio/pd/pd.SlackBuild
+++ b/audio/pd/pd.SlackBuild
@@ -16,7 +16,7 @@
# - correct .desktop Exec (2017)
PRGNAM=pd
-VERSION=${VERSION:-0.48_1}
+VERSION=${VERSION:-0.50_2}
SRCVERSION=$(echo $VERSION | tr _ -)
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -82,7 +82,6 @@ CXXFLAGS="$SLKCFLAGS" \
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
@@ -93,8 +92,8 @@ mkdir -p $PKG/usr/share/$PRGNAM
# Change the .desktop to point in correct executable.
sed "s+Exec=pd+Exec=/usr/lib${LIBDIRSUFFIX}/$PRGNAM/bin/$PRGNAM+" $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
-convert $TMP/$PRGNAM-$SRCVERSION/src/pd.ico $TMP/${PRGNAM}_48.xpm
-cp $TMP/${PRGNAM}_48-3.xpm $PKG/usr/share/$PRGNAM
+convert $TMP/$PRGNAM-$SRCVERSION/tcl/pd.ico $TMP/${PRGNAM}\_${SRCVERSION}.xpm
+cp $TMP/${PRGNAM}\_${SRCVERSION}-3.xpm $PKG/usr/share/$PRGNAM/${PRGNAM}\_${SRCVERSION}-3.xpm
# copy all header files (for pd_mrpeach)
cp -p $TMP/$PRGNAM-$SRCVERSION/src/*.h $PKG/usr/include/
@@ -107,8 +106,17 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a INSTALL.txt README.txt LICENSE.txt src/CHANGELOG.txt \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+# native documentation wants this
ln -s /usr/lib/pd/doc/ $PKG/usr/doc/$PRGNAM-$VERSION/docs
+# pd-gui wants this:
+# Error in startup script: couldn't execute "/usr/lib64/pd/tcl/../bin/pd":
+# no such file or directory
+cd $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM/bin/
+# remove bad (temp) link
+rm ./pd
+ln -s ../../../bin/$PRGNAM ./$PRGNAM
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh