# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-sphinxcontrib-coffee
_pkgname=sphinxcontrib-coffee
pkgver=0.2.1
pkgrel=0
pkgdesc="Sphinx CoffeeScript extension"
url="https://pypi.python.org/pypi/sphinxcontrib-coffee"
arch="noarch"
license="BSD"
depends="python2 py-sphinx"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

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

build() {
	cd "$_builddir"
	python2 setup.py build || return 1
}

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

md5sums="e2eb216531ef36c2f050fb1ffa5fdfc9  sphinxcontrib-coffee-0.2.1.tar.gz"
sha256sums="d72085a108c80847ff413e9891a69c2df3c5527d31694c2935d1b03d8a00df69  sphinxcontrib-coffee-0.2.1.tar.gz"
sha512sums="16c1b4ff721239dd99fb935e845ce23c6265022c6a8d9ce3d335107978789b9fea7202423b758441d35be85331ecfeef5c9caef6cb2c0e83a86a4044cb22daf9  sphinxcontrib-coffee-0.2.1.tar.gz"
