addpkg: python-cron-descriptor 1.2.24-1
This commit is contained in:
parent
aa2f9324a5
commit
0b27eefef2
1 changed files with 36 additions and 0 deletions
36
python-cron-descriptor/PKGBUILD
Normal file
36
python-cron-descriptor/PKGBUILD
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
||||||
|
|
||||||
|
pkgname=python-cron-descriptor
|
||||||
|
_pkgname="${pkgname#python-}"
|
||||||
|
pkgver=1.2.24
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="A Python library that converts cron expressions into human readable strings"
|
||||||
|
arch=('any')
|
||||||
|
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')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "$_pkgname-$pkgver"
|
||||||
|
python setup.py build
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd "$_pkgname-$pkgver"
|
||||||
|
python -m unittest
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$_pkgname-$pkgver"
|
||||||
|
python setup.py install --root="$pkgdir" --optimize=1
|
||||||
|
|
||||||
|
# documentation
|
||||||
|
install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
|
||||||
|
cp -vr examples "$pkgdir/usr/share/doc/$pkgname"
|
||||||
|
|
||||||
|
# license
|
||||||
|
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
|
||||||
|
}
|
Loading…
Reference in a new issue