From 2a5076d7b9ec3f2638a69380f37e67418e081b89 Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Wed, 29 Jun 2022 17:51:41 +0000 Subject: [PATCH] upgpkg: python-cron-descriptor 1.2.27-1 --- python-cron-descriptor/PKGBUILD | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/python-cron-descriptor/PKGBUILD b/python-cron-descriptor/PKGBUILD index d68f76e..8a9a932 100644 --- a/python-cron-descriptor/PKGBUILD +++ b/python-cron-descriptor/PKGBUILD @@ -2,29 +2,39 @@ pkgname=python-cron-descriptor _pkgname="${pkgname#python-}" -pkgver=1.2.24 -pkgrel=2 -pkgdesc="A Python library that converts cron expressions into human readable strings" +pkgver=1.2.27 +pkgrel=1 +pkgdesc='A Python library that converts cron expressions into human readable strings' arch=('any') -url="https://github.com/Salamek/cron-descriptor" +url='https://github.com/Salamek/cron-descriptor' license=('MIT') depends=('python') -makedepends=('python-setuptools') -source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") -b2sums=('bf593431ffe52b58734c76ab9f065842d0423cd44d558a8efc75a97b3692cb11a9a43f0d9135eacc73087d0c184f73535fcfe4c9a62d12f7627c8ba99ad950f1') +makedepends=('git' 'python-setuptools') +_commit='9435edb5373f08eb6eb206e4e17ccbac495d6135' +source=("$pkgname::git+$url#commit=$_commit") +b2sums=('SKIP') + +pkgver() { + cd "$pkgname" + + git describe --tags | sed 's/^v//' +} build() { - cd "$_pkgname-$pkgver" + cd "$pkgname" + python setup.py build } check() { - cd "$_pkgname-$pkgver" + cd "$pkgname" + python -m unittest } package() { - cd "$_pkgname-$pkgver" + cd "$pkgname" + python setup.py install --root="$pkgdir" --optimize=1 # documentation