diff options
author | Michales Michaloudes <korgie@gmail.com> | 2017-03-24 20:38:16 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-03-24 20:38:16 +0700 |
commit | f873bf5d750bd4e66a94277dd99f37360d27f1a0 (patch) | |
tree | 57a8551eac597bb91990cf1e6307b999e9ba2ba5 /audio/pd | |
parent | 42cc4d2e19a7da791e9621c1d44f9a8f3c186f98 (diff) |
audio/pd: Updated for version 0.47.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/pd')
-rw-r--r-- | audio/pd/pd.SlackBuild | 22 | ||||
-rw-r--r-- | audio/pd/pd.info | 6 |
2 files changed, 19 insertions, 9 deletions
diff --git a/audio/pd/pd.SlackBuild b/audio/pd/pd.SlackBuild index 12053c81c55d4..bb4f9b8f1c67c 100644 --- a/audio/pd/pd.SlackBuild +++ b/audio/pd/pd.SlackBuild @@ -12,17 +12,19 @@ # - desktop icon # - enable jack and portmidi # - include all .h files +# - added SRCVERSION (2017) +# - correct .desktop Exec (2017) PRGNAM=pd -VERSION=${VERSION:-0.45.3} +VERSION=${VERSION:-0.47.1} +SRCVERSION=$(echo $VERSION | sed -r 's/(.*)\.([0-9])$/\1-\2/') BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -SRCVERSION=0.45-3 if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -33,8 +35,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -80,13 +82,21 @@ 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 # create and cp KDE desktop icon mkdir -p $PKG/usr/share/applications mkdir -p $PKG/usr/share/$PRGNAM -cp -a $CWD/$PRGNAM.desktop $PKG/usr/share/applications + +# 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 + +# for unknown reason to me (Michaloudes), this fails (can't find pd-gui.tcl) but the executable from +# /usr/lib{$LIBDIRSUFFIX}/usr/bin/pd is ok! +rm $PKG/usr/bin/pd +rm $PKG/usr/bin/pd-gui.tcl convert $TMP/$PRGNAM-$SRCVERSION/src/pd.ico $TMP/${PRGNAM}_48.xpm cp $TMP/${PRGNAM}_48-3.xpm $PKG/usr/share/$PRGNAM diff --git a/audio/pd/pd.info b/audio/pd/pd.info index d2885dfd110a8..536defd92f3c1 100644 --- a/audio/pd/pd.info +++ b/audio/pd/pd.info @@ -1,8 +1,8 @@ PRGNAM="pd" -VERSION="0.45.3" +VERSION="0.47.1" HOMEPAGE="http://msp.ucsd.edu/software.html" -DOWNLOAD="http://msp.ucsd.edu/Software/pd-0.45-3.src.tar.gz" -MD5SUM="461a3d0d558a4f45c49943234baa9ca8" +DOWNLOAD="http://msp.ucsd.edu/Software/pd-0.47-1.src.tar.gz" +MD5SUM="78f012826bdbebcc683e15e5f8a94db9" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |