#!/bin/bash # # tap-plugins.SlackBuild is free software; you can redistribute it and/or modify it under the # terms of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or any later version. # # tap-plugins.SlackBuild is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 59 Temple # Place - Suite 330, Boston, MA 02111-1307, USA # # default settings PACKAGE="tap-plugins" PACKAGE_EXT="gz" VERSION=${VERSION:=0.7.3} DVERSION=20140526 BUILD=${BUILD:=1} if [ -f ~/.slackbuildrc ]; then . ~/.slackbuildrc elif [ -f ../../runtime/slackbuildrc ]; then . ../../runtime/slackbuildrc fi check_required get_source tap-reverbed-r0.tar.gz http://downloads.sourceforge.net/project/tap-plugins/tap-reverbed/Release%200/tap-reverbed-r0.tar.gz get_source tap-plugins-doc-$DVERSION.tar.gz http://downloads.sourceforge.net/project/tap-plugins/tap-plugins-doc/2014-05-26/tap-plugins-doc-$DVERSION.tar.gz SRC="${PACKAGE}-${VERSION}.tar.$PACKAGE_EXT" URL="http://prdownloads.sourceforge.net/$PACKAGE/$SRC" get_source $SRC $URL unpack_source $SRC $PACKAGE-${VERSION} make mkdir -p $PKG/$LIBDIR/ladspa mkdir -p $PKG/usr/share/ladspa/rdf/ /usr/bin/ginstall -m 644 *.so $PKG/$LIBDIR/ladspa /usr/bin/ginstall -m 644 tap-plugins.rdf $PKG/usr/share/ladspa/rdf/ mkdir -p $DOCS cp -a COPYING CREDITS README $DOCS ( cd $DOCS tar xfvz $CWD/tap-plugins-doc-${DVERSION}.tar.gz mv tap-plugins-doc-${DVERSION} html chown -R root:root . ) # Now build the reverb editor unpack_source tap-reverbed-r0.tar.gz tap-reverbed-r0 ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ --build=$ARCH-slackware-linux make LIBS=-lm # more trouble than it's worth to get 'make install' to handle DESTDIR strip src/reverbed mkdir -p $PKG/usr/bin cp src/reverbed $PKG/usr/bin/reverbed.bin cat src/.reverbed > $DOCS/dot.reverbed.default # Shell script wrapper sed 's/@VERSION@/'$VERSION'/g' < $CWD/reverbed.sh > $PKG/usr/bin/reverbed chmod 0755 $PKG/usr/bin/reverbed # ChangeLog and NEWS are 0-length placeholders for i in AUTHORS COPYING README; do cat $i > $DOCS/$i.reverbed done fixup_package $PKG # Clean up the extra stuff: set +u if [ "$1" = "--cleanup" ]; then rm -rf $TMP/${PACKAGE} rm -rf $PKG fi