#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=libsidplay
pkgver=1.36.59
pkgrel=2gv
source=("libsidplay-1.36.59.tar.gz" "libsidplay-1.36.59.patch")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "developer")
options=('nosrcpack')

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"libsidplay (SID (MOS 6581) emulation library)"
"libsidplay is a library that implements the emulation of the C64's SID"
"chip (MOS 6581) and CPU (6510). It is used by several 'player'"
"applications, e.g. sidplay, which make it possible to listen to"
"*really* a lot (13.600+) of tunes, known from old and new C64 programs"
"(as well as Amiga compositions)."
)


build() {
	cd $startdir/src/$pkgname-$pkgver

	patch -p1 < $startdir/src/libsidplay-1.36.59.patch || exit 1

	./configure --prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--disable-static \
		--build=$arch-slackware-linux
	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg
}