39 lines
1.3 KiB
Bash
39 lines
1.3 KiB
Bash
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
|
# Contributor: Mark Wagie <mark dot wagie at tutanota dot com>
|
|
# Contributor: Thomas Andrejak <thomas.andrejak@gmail.com>
|
|
|
|
pkgname=python-croniter
|
|
_pkgname="${pkgname#python-}"
|
|
pkgver=1.2.0
|
|
pkgrel=1
|
|
pkgdesc="Provides iteration for the datetime object with a cron like format"
|
|
arch=('any')
|
|
url="https://github.com/kiorky/croniter"
|
|
license=('MIT')
|
|
depends=('python-dateutil' 'python-natsort')
|
|
makedepends=('python-setuptools')
|
|
checkdepends=('python-pytest' 'python-pytz')
|
|
source=("$pkgname-$pkgver.tar.gz::https://pypi.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
|
|
sha512sums=('0d7d59d617be16f7f1b6401a3c1260c3b644855c046fa6c2948cf2f2caaf7ee0183c659e0165c8d36068467893bb68bdd4024a246a85c76448ab0a62233c9ca1')
|
|
b2sums=('eed3db9d96571de188f5bda3c3000ce4607e72fd97d2f70b34355495349744129c29ace03320d987f43d1692720dbfbb965e824091825b2e11222306a10d081c')
|
|
|
|
build() {
|
|
cd "$_pkgname-$pkgver"
|
|
python setup.py build
|
|
}
|
|
|
|
check() {
|
|
cd "$_pkgname-$pkgver"
|
|
pytest
|
|
}
|
|
|
|
package() {
|
|
cd "$_pkgname-$pkgver"
|
|
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
|
|
|
|
# license
|
|
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" docs/LICENSE
|
|
|
|
# documentation
|
|
install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.rst docs/CHANGES.rst
|
|
}
|