# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
setvar pkgname = 'py-audioread'
setvar pkgver = '1.0.3'
setvar pkgrel = '0'
setvar pkgdesc = ""Cross-library audio decoding for Python""
setvar url = ""https://github.com/sampsyo/audioread""
setvar arch = ""noarch""
setvar license = ""MIT""
setvar depends = ""python2""
setvar depends_dev = """"
setvar makedepends = ""python2-dev""
setvar install = """"
setvar subpackages = """"
setvar source = ""https://files.pythonhosted.org/packages/source/a/audioread/audioread-$pkgver.tar.gz""

setvar _builddir = ""$srcdir"/audioread-$pkgver"
proc prepare {
	local i
	cd $_builddir
	for i in $source {
		case (i) {
		*.patch { msg $i; patch -p1 -i "$srcdir"/$i || return 1}
		}
	}
}

proc build {
	cd $_builddir
	python2 setup.py build || return 1
}

proc package {
	cd $_builddir
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

setvar md5sums = ""b3836586618c09acf4b868bdc2cbcc66  audioread-1.0.3.tar.gz""
setvar sha256sums = ""4ae8de1997e47797879c6484296d466a6a750ad93c6cd0b26c05bf71c6aa1ba5  audioread-1.0.3.tar.gz""
setvar sha512sums = ""7868d8ac48c55bf70dce10be094681737edd07530a1ff29d2ab2ec4f5eb6d51d89145d2c5dc5e661d9ecdafdcb27032c767f4bd9a01236b8d23e7fb7634b4eda  audioread-1.0.3.tar.gz""