diff options
author | Michales Michaloudes <korgie@gmail.com> | 2011-12-11 17:54:57 -0600 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-12-18 00:07:45 -0200 |
commit | 44ecb8e089e631370901ab0fdf7ecc56539e7e0d (patch) | |
tree | 2c9987ea45774ddd4fdbb26d760eba21d5960ea2 /audio/pd/pd.SlackBuild | |
parent | ddf4b39e96596d8ec97d87995d1d3525766b266a (diff) |
audio/pd: Rebuilt to include some headers
This commit also cleans up some of the build script
(yep, changes by rworkman)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'audio/pd/pd.SlackBuild')
-rw-r--r-- | audio/pd/pd.SlackBuild | 39 |
1 files changed, 22 insertions, 17 deletions
diff --git a/audio/pd/pd.SlackBuild b/audio/pd/pd.SlackBuild index f8598f974fb5..ec185d7e6f58 100644 --- a/audio/pd/pd.SlackBuild +++ b/audio/pd/pd.SlackBuild @@ -11,13 +11,15 @@ # - version bump # - desktop icon # - enable jack and portmidi +# - include all .h files PRGNAM=pd -VERSION=${VERSION:-0.43-0} -CANONICALIZEDVERSION=$(echo $VERSION | tr - .) -BUILD=${BUILD:-1} +VERSION=${VERSION:-0.43.0} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +SRCVERSION=0.43-0 + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; @@ -50,9 +52,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.src.tar.gz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$SRCVERSION +tar xvf $CWD/$PRGNAM-$SRCVERSION.src.tar.gz +cd $PRGNAM-$SRCVERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . @@ -70,9 +72,9 @@ cd src --enable-jack \ --disable-portaudio \ --enable-portmidi -make -make install DESTDIR=$PKG -cd - + 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 @@ -81,23 +83,26 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr mkdir -p $PKG/usr/share/applications mkdir -p $PKG/usr/share/$PRGNAM cp -a $CWD/$PRGNAM.desktop $PKG/usr/share/applications -convert $TMP/$PRGNAM-$VERSION/src/pd.ico $TMP/$PRGNAM\_48.xpm -cp $TMP/$PRGNAM\_48-3.xpm $PKG/usr/share/$PRGNAM +convert $TMP/$PRGNAM-$SRCVERSION/src/pd.ico $TMP/${PRGNAM}_48.xpm +cp $TMP/${PRGNAM}_48-3.xpm $PKG/usr/share/$PRGNAM # For 0.43-0 version mkdir -p $PKG/usr/lib/pd/tcl/ -cp -a $TMP/$PRGNAM-$VERSION/tcl/*.tcl $PKG/usr/lib/pd/tcl/ +cp -a $TMP/$PRGNAM-$SRCVERSION/tcl/*.tcl $PKG/usr/lib/pd/tcl/ + +# copy all header files (for pd_mrpeach) +cp -p $TMP/$PRGNAM-$SRCVERSION/src/*.h $PKG/usr/include/ mv $PKG/usr/share/man $PKG/usr/man -mkdir -p $PKG/usr/doc/$PRGNAM-$CANONICALIZEDVERSION +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a INSTALL.txt README.txt LICENSE.txt src/CHANGELOG.txt \ - $PKG/usr/doc/$PRGNAM-$CANONICALIZEDVERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$CANONICALIZEDVERSION/$PRGNAM.SlackBuild -ln -s /usr/lib/pd/doc/ $PKG/usr/doc/$PRGNAM-$CANONICALIZEDVERSION/docs + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +ln -s /usr/lib/pd/doc/ $PKG/usr/doc/$PRGNAM-$VERSION/docs mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$CANONICALIZEDVERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |