# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py-livereload
pkgver=2.5.1
pkgrel=0
pkgdesc="livereload server in python"
url="https://github.com/lepture/python-livereload"
arch="noarch"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev py-setuptools"
install=""
subpackages=""
source="python-livereload-$pkgver.tar.gz::https://github.com/lepture/python-livereload/archive/v$pkgver.tar.gz"

_builddir="$srcdir"/python-livereload-$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="19746eacb95c2cbae868764e726c7e8e  python-livereload-2.5.1.tar.gz"
sha256sums="b90a47fb761a6c4a770454ccf1cf03d0351a415ff04bf87bc8a531f945cbc8ab  python-livereload-2.5.1.tar.gz"
sha512sums="018195932d3c1366bbf6a9bface5d05818c42d020806453c6942901ad645616416c3bdbf48222c8a31664360b94f03696fd3a5ca9c9cfb7673de005d3540f330  python-livereload-2.5.1.tar.gz"
