From 0ea4568ab76ddf0fd78dc08e093577ee6fc338f2 Mon Sep 17 00:00:00 2001 From: prspkt Date: Fri, 26 Apr 2019 19:13:25 +0300 Subject: community/py3-livereload: clarify license, modernize --- community/py3-livereload/APKBUILD | 31 +++++++++---------------------- 1 file changed, 9 insertions(+), 22 deletions(-) (limited to 'community/py3-livereload/APKBUILD') diff --git a/community/py3-livereload/APKBUILD b/community/py3-livereload/APKBUILD index 84b0b7e44e..715d00a394 100644 --- a/community/py3-livereload/APKBUILD +++ b/community/py3-livereload/APKBUILD @@ -7,35 +7,22 @@ pkgrel=0 pkgdesc="livereload server in python" url="https://github.com/lepture/python-livereload" arch="noarch" -license="BSD" +license="BSD-3-Clause" replaces="py-livereload" # for backwards compatibility provides="py-livereload=$pkgver-r$pkgrel" # for backwards compatibility depends="" -depends_dev="" -makedepends="$depends_dev py3-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 -} +makedepends="py3-setuptools" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver build() { - cd "$_builddir" - python3 setup.py build || return 1 + cd "$builddir" + python3 setup.py build } package() { - cd "$_builddir" - python3 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + cd "$builddir" + python3 setup.py install --prefix=/usr --root="$pkgdir" } -sha512sums="351fa56c64a3bea7c43e1a60c3633bcb80a6093aaadaa73e8f0bc6a27f939c52f272d60922e5d1d956834b7cff16b8c7ee702cbc85473e554629a38efaef9993 python-livereload-2.6.0.tar.gz" +sha512sums="8ceef3dac3b3903cf9333ce933cb39ba95e0c2f3a746b845d1dfbdc89e05a35ca9ef3ff2303ee39a8194e25c4db9deda65920bd3536bce82d45fc7930c256de4 livereload-2.6.0.tar.gz" -- cgit v1.2.3