upgpkg: python-cron-descriptor 1.2.27-1
This commit is contained in:
parent
9af169b4c5
commit
2a5076d7b9
1 changed files with 20 additions and 10 deletions
|
@ -2,29 +2,39 @@
|
||||||
|
|
||||||
pkgname=python-cron-descriptor
|
pkgname=python-cron-descriptor
|
||||||
_pkgname="${pkgname#python-}"
|
_pkgname="${pkgname#python-}"
|
||||||
pkgver=1.2.24
|
pkgver=1.2.27
|
||||||
pkgrel=2
|
pkgrel=1
|
||||||
pkgdesc="A Python library that converts cron expressions into human readable strings"
|
pkgdesc='A Python library that converts cron expressions into human readable strings'
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url="https://github.com/Salamek/cron-descriptor"
|
url='https://github.com/Salamek/cron-descriptor'
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
depends=('python')
|
depends=('python')
|
||||||
makedepends=('python-setuptools')
|
makedepends=('git' 'python-setuptools')
|
||||||
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
|
_commit='9435edb5373f08eb6eb206e4e17ccbac495d6135'
|
||||||
b2sums=('bf593431ffe52b58734c76ab9f065842d0423cd44d558a8efc75a97b3692cb11a9a43f0d9135eacc73087d0c184f73535fcfe4c9a62d12f7627c8ba99ad950f1')
|
source=("$pkgname::git+$url#commit=$_commit")
|
||||||
|
b2sums=('SKIP')
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
cd "$pkgname"
|
||||||
|
|
||||||
|
git describe --tags | sed 's/^v//'
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$_pkgname-$pkgver"
|
cd "$pkgname"
|
||||||
|
|
||||||
python setup.py build
|
python setup.py build
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cd "$_pkgname-$pkgver"
|
cd "$pkgname"
|
||||||
|
|
||||||
python -m unittest
|
python -m unittest
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$_pkgname-$pkgver"
|
cd "$pkgname"
|
||||||
|
|
||||||
python setup.py install --root="$pkgdir" --optimize=1
|
python setup.py install --root="$pkgdir" --optimize=1
|
||||||
|
|
||||||
# documentation
|
# documentation
|
||||||
|
|
Loading…
Reference in a new issue