#!/bin/bash # # ardour.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. # # ardour.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="ardour3" PACKAGE_EXT="bz2" VERSION=${VERSION:=3.5.403} BUILD=${BUILD:=1} ARCH=$(uname -m) if [ -f ~/.slackbuildrc ]; then . ~/.slackbuildrc elif [ -f ../../runtime/slackbuildrc ]; then . ../../runtime/slackbuildrc fi check_required SRC="Ardour3-$VERSION.tar.$PACKAGE_EXT" URL="ftp://ftp.archlinux.org/other/ardour/$SRC" # "https://sources.archlinux.org/other/$pkgname/$_pkgname-$pkgver.tar.bz2" get_source $SRC $URL unpack_source $SRC Ardour3-$VERSION if [ "$ARCH" == "i486" ] || [ "$ARCH" == "i686" ]; then TARGET="i686" fi if [ "$ARCH" == "x86_64" ]; then TARGET="x86_64" fi if [ "${LV2:-no}" = "yes" ]; then lv2opt="--no-lv2" else lv2opt="--lv2 --lv2-system" fi ./waf configure \ --prefix=/usr \ --configdir=/etc \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --mandir=/usr/man \ --dist-target=${TARGET} \ --freedesktop \ --lxvst \ $lv2opt # -j3 not on a vbox ./waf build -j3 ./waf install --destdir=$PKG mkdir -p $PKG/usr/share/applications/ cat $CWD/ardour3.desktop > $PKG/usr/share/applications/ardour3.desktop mkdir -p $DOCS cp -a COPYING PACKAGER_README README TRANSLATORS $DOCS cp $CWD/doinst.sh.in $CWD/doinst.sh # Let's not clobber config files #cd $PKG/etc/ardour3 #for i in $(ls -r *) ; do # if [ -f $i ]; then # mv $i $i.new # echo "config etc/ardour3/$i.new" >> $CWD/doinst.sh # fi # done #cd - fixup_package $PKG rm -f $CWD/doinst.sh # Clean up the extra stuff: set +u if [ "$1" = "--cleanup" ]; then rm -rf $TMP/$PACKAGE-$VERSION rm -rf $PKG fi