#!/bin/bash # # jack2.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. # # jack2.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="jack2" PACKAGE_EXT="gz" VERSION=${VERSION:=1.9.22} BUILD=${BUILD:=1} if [ -f ~/.slackbuildrc ]; then . ~/.slackbuildrc elif [ -f ../../runtime/slackbuildrc ]; then . ../../runtime/slackbuildrc fi check_required SRC="jack2-${VERSION}.tar.$PACKAGE_EXT" URL="https://github.com/jackaudio/${PACKAGE}/archive/v${VERSION}.tar.gz" get_source $SRC $URL unpack_source $SRC ${PACKAGE}-$VERSION LDFLAGS="$SLKLDFLAGS" \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ python3 waf configure \ --prefix=/usr \ --alsa \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --libdir32=/usr/lib \ --mandir=/usr/man/man1 \ --htmldir=/usr/doc/${PACKAGE}-${VERSION}/html \ --dbus \ --classic python3 waf build python3 waf install --destdir=$PKG # Only allow execution by user in 'audio' group: chown root:audio $PKG/usr/bin/* chmod 0750 $PKG/usr/bin/* mkdir -p $DOCS cp -a *.rst COPYING README* $DOCS fixup_package $PKG # Clean up the extra stuff: set +u if [ "$1" = "--cleanup" ]; then rm -rf $TMP/jack-audio-connection-kit-$VERSION rm -rf $PKG fi