aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-livereload/APKBUILD
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-04-26 19:13:25 +0300
committerprspkt <prspkt@protonmail.com>2019-04-26 19:42:27 +0300
commit0ea4568ab76ddf0fd78dc08e093577ee6fc338f2 (patch)
tree1f3bc5bf2a0cd018b076cbcc3606f25095c99fc1 /community/py3-livereload/APKBUILD
parent0b3cb545ca075dc884eb3c3039b55f9382590a8c (diff)
downloadaports-0ea4568ab76ddf0fd78dc08e093577ee6fc338f2.tar.bz2
aports-0ea4568ab76ddf0fd78dc08e093577ee6fc338f2.tar.xz
community/py3-livereload: clarify license, modernize
Diffstat (limited to 'community/py3-livereload/APKBUILD')
-rw-r--r--community/py3-livereload/APKBUILD31
1 files changed, 9 insertions, 22 deletions
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"