# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
setvar pkgname = 'soundtouch'
setvar pkgver = '1.9.2'
setvar pkgrel = '1'
setvar pkgdesc = ""Audio Processing library for changing Tempo, Pitch and Playback Rates""
setvar url = ""http://www.surina.net/soundtouch/""
setvar arch = ""all""
setvar license = ""LGPLv2+""
setvar depends = """"
setvar depends_dev = """"
setvar makedepends = ""$depends_dev autoconf automake libtool""
setvar install = """"
setvar subpackages = ""$pkgname-dev $pkgname-doc""
setvar source = ""http://www.surina.net/$pkgname/$pkgname-$pkgver.tar.gz""
setvar builddir = ""$srcdir"/soundtouch"

proc prepare {
	default_prepare
	cd $builddir
	./bootstrap
}

proc build {
	cd $builddir
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-shared \
		--disable-static
	make
}

proc package {
	cd $builddir
	make DESTDIR="$pkgdir" install
	rm -rf "$pkgdir"/usr/doc
}

setvar sha512sums = ""d8f3f8970198a46ef3dc252719749bc19cbd2f8de5e00eeb2874565bfc421b60d94d400bacf702591293e595edf6c1c35917b6153fd395cad8d6b03115da7068  soundtouch-1.9.2.tar.gz""