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

# source: james
TARBALL=rsound-5148cde01e3a.tar.bz2
MD5SUM=bea5cf73d8f10fd50bc25fc644176911
SRC_URL=http://distro.ibiblio.org/fatdog/source/700/$TARBALL
BUNDLE=

SLACKREQ='alsa-lib libjack2 libsamplerate libportaudio' # 
SLACKDESC='rsound: rsound 2013.8 (Network audio)  
rsound:  
rsound: Sound is a portable networked audio system. It allows you to send 
rsound: audio from an application and transfer it directly to a different 
rsound: computer on your LAN network. It is an audio daemon with a much 
rsound: different focus than most other audio daemons: its only purpose in 
rsound: life for RSound is to transfer audio over a network.  
rsound: 
rsound: 
rsound: 
rsound:
'

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/rsound*
	./configure --prefix=/usr --disable-libao --disable-openal &&
	sed -i -e 's|lib/|lib64/|g; s|/lib$|/lib64|g; s|/lib[ \t]|/lib64 |g;' \
		src/Makefile patches/alsa/Makefile &&
	make $MAKEFLAGS &&
	make install &&
	make -C patches/alsa &&
	make -C patches/alsa install &&
	sed -i -e '/^libdir/ s|/lib|/lib64|' /usr/lib64/pkgconfig/rsound.pc
	pkg_build_slackdesc
}
