2023-02-19 12:59:08 +02:00
|
|
|
# Maintainer: rhssk
|
|
|
|
pkgname=when-changed-git
|
2023-02-19 13:09:33 +02:00
|
|
|
pkgver=0.3.0.r37.g85d7acc
|
2023-02-19 12:59:08 +02:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Execute a command when a file is changed."
|
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/joh/when-changed"
|
|
|
|
license=('BSD')
|
|
|
|
depends=('python' 'python-watchdog' 'python-setuptools')
|
|
|
|
makedepends=('git')
|
|
|
|
provides=(when-changed)
|
|
|
|
conflicts=(when-changed)
|
|
|
|
source=('git+https://github.com/joh/when-changed.git')
|
|
|
|
sha256sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd when-changed
|
2023-02-19 13:09:33 +02:00
|
|
|
git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
2023-02-19 12:59:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd when-changed
|
|
|
|
python setup.py install --root="$pkgdir" --optimize=1
|
|
|
|
}
|