[arch-commits] Commit in python-watchgod/trunk (PKGBUILD)
Maxime Gauduin
alucryd at gemini.archlinux.org
Tue Jul 27 15:29:59 UTC 2021
Date: Tuesday, July 27, 2021 @ 15:29:59
Author: alucryd
Revision: 987746
upgpkg: python-watchgod 0.7-1
Modified:
python-watchgod/trunk/PKGBUILD
----------+
PKGBUILD | 22 +++++++++++++++-------
1 file changed, 15 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-07-27 15:29:57 UTC (rev 987745)
+++ PKGBUILD 2021-07-27 15:29:59 UTC (rev 987746)
@@ -1,26 +1,34 @@
# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
_pkgname=watchgod
pkgname=python-$_pkgname
-pkgver=0.6
-pkgrel=2
+pkgver=0.7
+pkgrel=1
pkgdesc='Simple, modern file watching and code reload in python'
arch=('any')
url='https://github.com/samuelcolvin/watchgod'
license=('MIT')
depends=('python')
-makedepends=('python-setuptools')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-sha512sums=('1eaa0febc4ba8b1e4bbd6e7bae8f2312c2eeaae395ebbf76953fdf937d4eda06bad818574000d6b96abfefe391affb5d007426bbf7867578293729decc6b61fb')
+makedepends=('git' 'python-setuptools')
+_tag=2a3462c82b81fc2339cb79ece6bd2eabea2f9937
+source=("git+$url#tag=${_tag}")
+sha512sums=('SKIP')
+pkgver() {
+ cd $_pkgname
+
+ git describe --tags | sed 's/^v//'
+}
+
build() {
- cd $_pkgname-$pkgver
+ cd $_pkgname
python setup.py build
}
package() {
- cd $_pkgname-$pkgver
+ cd $_pkgname
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
More information about the arch-commits
mailing list