#!/bin/bash # # bluez-alsa.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. # # bluez-alsa.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="bluez-alsa" PACKAGE_EXT="gz" #VERSION=${VERSION:=20200725} VERSION=${VERSION:=4.2.0} BUILD=${BUILD:=1} if [ -f ~/.slackbuildrc ]; then . ~/.slackbuildrc elif [ -f ../../runtime/slackbuildrc ]; then . ../../runtime/slackbuildrc fi check_required SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" URL="https://github.com/Arkq/bluez-alsa/archive/refs/tags/v${VERSION}.tar.$PACKAGE_EXT" get_source $SRC $URL unpack_source $SRC $PACKAGE-$VERSION autoreconf --install mkdir build && cd build CFLAGS="$SLKCFLAGS" ../configure \ --prefix=/usr \ --sysconfdir=/etc \ --disable-static \ --enable-manpages \ --mandir=/usr/man \ --with-dbusconfdir=/usr/share/dbus-1/system.d \ --enable-mp3lame \ --enable-mpg123 \ --enable-aac \ --enable-ofono \ --enable-debug \ --disable-payloadcheck \ --build=$ARCH-slackware-linux || exit 1 make ${NUMJOBS} DESTDIR=$PKG make install cd .. cp $CWD/a2dp-agent $PKG/usr/bin chmod 755 $PKG/usr/bin/a2dp-agent mkdir -p $DOCS cp -a AUTHORS *.md LICENSE NEWS $DOCS # Install Slackware scripts install -Dm755 $CWD/rc.bluez-alsa $PKG/etc/rc.d/rc.bluez-alsa.new install -Dm644 $CWD/bluez-alsa.default $PKG/etc/default/bluez-alsa.new fixup_package $PKG # Clean up the extra stuff: set +u if [ "$1" = "--cleanup" ]; then rm -rf $TMP/$PACKAGE-$VERSION rm -rf $PKG fi