summaryrefslogtreecommitdiff
path: root/community/py3-watchdog/APKBUILD
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-04-26 20:05:33 +0300
committerprspkt <prspkt@protonmail.com>2019-04-26 22:20:25 +0300
commite1ae0206dc7a5f3540d692a4492e3a8e545bbceb (patch)
tree8874faae3d1d31aeb68147e99a951aba57e3df0c /community/py3-watchdog/APKBUILD
parenteda7bdfc7823ca2234d910a32d068057c5a5c5d1 (diff)
downloadaports-e1ae0206dc7a5f3540d692a4492e3a8e545bbceb.zip
community/py3-watchdog: modernize
Diffstat (limited to 'community/py3-watchdog/APKBUILD')
-rw-r--r--community/py3-watchdog/APKBUILD30
1 files changed, 9 insertions, 21 deletions
diff --git a/community/py3-watchdog/APKBUILD b/community/py3-watchdog/APKBUILD
index 243099b8dbe..75f34f4fc6c 100644
--- a/community/py3-watchdog/APKBUILD
+++ b/community/py3-watchdog/APKBUILD
@@ -1,40 +1,28 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-watchdog
+_pkgname=watchdog
pkgver=0.9.0
pkgrel=0
-pkgdesc="Python API and shell utilities to monitor file system events."
+pkgdesc="Filesystem events monitoring"
url="https://github.com/gorakhargosh/watchdog"
arch="noarch"
license="Apache-2.0"
replaces="py-watchdog" # for backwards compatibility
provides="py-watchdog=$pkgver-r$pkgrel" # for backwards compatibility
depends="py3-pathtools py3-yaml py3-argh"
-depends_dev=""
makedepends="py3-setuptools"
-install=""
-subpackages=""
-source="watchdog-$pkgver.tar.gz::https://github.com/gorakhargosh/watchdog/archive/v$pkgver.tar.gz"
-
-_builddir="$srcdir"/watchdog-$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
-}
+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="97fca2642209150a611d931d6f2049a9941a3494a6c566bc18eaa45a8fc2fbd02c712b37a85cc1375eeb65715706ba6b8ecf781b99951721988c318f81eff7c6 watchdog-0.9.0.tar.gz"
+sha512sums="7e7e6ffd292ef39f06fe3648024b8cce55c343802415b13fdac881838d78b33139264ba329d95b97ab74e85cd9c8da102e1985de1622b09d436d273195f3187c watchdog-0.9.0.tar.gz"