summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a0d646801c3c666241afb89850db7cbf47db2ddc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: Chris Warrick <aur@chriswarrick.com>
pkgbase=python-datecond
pkgname=python-datecond
_pyname=datecond
pkgver=0.1.7
pkgrel=2
pkgdesc='Parser for date range conditionals.'
arch=('any')
url='https://github.com/Kwpolska/datecond'
license=('BSD')
makedepends=('python' 'python-setuptools' 'python-dateutil')
options=(!emptydirs)
source=("https://pypi.io/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
md5sums=('2da115c3753e045e69aa4f5de94cbe29')

prepare() {
  cd "${srcdir}/${_pyname}-${pkgver}"
}

package_python-datecond() {
  depends=('python' 'python-setuptools' 'python-dateutil')
  cd "${srcdir}/${_pyname}-${pkgver}"
  python3 setup.py install --root="${pkgdir}/" --optimize=1
  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgbase}/LICENSE"
}

# vim:set ts=2 sw=2 et: