aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-04-26 20:59:48 +0300
committerprspkt <prspkt@protonmail.com>2019-04-26 22:24:52 +0300
commitbcd500e4fb168b2a7ca2b5870bb0c30f4e36eb54 (patch)
tree9db60778829e97205938637ece51a32eabe0f77c
parent714000b167c20254d26e677457cafeb05f9f480a (diff)
downloadaports-bcd500e4fb168b2a7ca2b5870bb0c30f4e36eb54.tar.gz
aports-bcd500e4fb168b2a7ca2b5870bb0c30f4e36eb54.tar.bz2
aports-bcd500e4fb168b2a7ca2b5870bb0c30f4e36eb54.tar.xz
community/py3-sphinx-autobuild: clarify license, modernize
-rw-r--r--community/py3-sphinx-autobuild/APKBUILD27
1 files changed, 8 insertions, 19 deletions
diff --git a/community/py3-sphinx-autobuild/APKBUILD b/community/py3-sphinx-autobuild/APKBUILD
index 9558054138..bd52afd31f 100644
--- a/community/py3-sphinx-autobuild/APKBUILD
+++ b/community/py3-sphinx-autobuild/APKBUILD
@@ -1,41 +1,30 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-sphinx-autobuild
+_pkgname=sphinx-autobuild
pkgver=0.7.1
pkgrel=0
pkgdesc="Watch a Sphinx directory and rebuild the documentation when a change is detected"
url="https://github.com/GaretJax/sphinx-autobuild"
arch="noarch"
-license="BSD"
+license="MIT"
replaces="py-sphinx-autobuild" #for backwards compatibility
provides="py-sphinx-autobuild=$pkgver-r$pkgrel" #for backwards compatibility
depends="py3-argh py3-livereload py3-pathtools py3-port-for py3-sphinx
py3-tornado py3-watchdog py3-yaml"
-depends_dev=""
makedepends="py3-setuptools"
-install=""
-subpackages=""
-source="sphinx-autobuild-$pkgver.tar.gz::https://github.com/GaretJax/sphinx-autobuild/archive/v$pkgver.tar.gz
+source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
fix-requires.patch"
-_builddir="$srcdir"/sphinx-autobuild-$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
-}
+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="6ecd4cccfcf1f6ecd15ffe39ad166436bc628e9ffb215b96b979cf10a56352640aefb22a858ab05e1fa9153c684af162bf89813331e1c2b12450a0cf2fcd3646 sphinx-autobuild-0.7.1.tar.gz