### this file is sourced not run
PKGVER=1.4.0.2019.07
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=bluez-alsa-20190701.tar.gz
MD5SUM=186ee7385b08e5d94b61194de557a760
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$TARBALL
BUNDLE=

SLACKREQ='bluez glib libreadline libbsd libncurses libsbc libfdk-aac'
SLACKDESC="bluez-alsa: bluez-alsa $PKGVER (ALSA audio backend for Bluez)
bluez-alsa: 
bluez-alsa: This project is a rebirth of a direct integration between Bluez and 
bluez-alsa: ALSA, enabling bluetooth audio to be played directly on ALSA instead 
bluez-alsa: of pulseaudio.
bluez-alsa: 
bluez-alsa: https://github.com/Arkq/bluez-alsa
bluez-alsa: 
bluez-alsa: 
bluez-alsa: 
bluez-alsa:
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/bluez-alsa* &&
	
	# james: look for ncursesw not ncurses
	sed -i -e 's/ncurses/ncursesw/' configure.ac &&

	autoreconf -fi &&
	CONFFLAGS="$CONFFLAGS --enable-aac --enable-debug \
		--disable-payloadcheck \
		--enable-rfcomm \
		--enable-hcitop \
		--enable-pcm-test" &&
	pkg_build_autoconf &&
	pkg_build_slackdesc &&
	true
}


