archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / python-ciso8601 / repos / community-x86_64 / PKGBUILD
blob0382691aec5559d31a1811f4053f32e8b7685306
1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
3 pkgname=python-ciso8601
4 pkgver=2.3.0
5 pkgrel=2
6 pkgdesc='Fast ISO8601 date time parser for Python written in C'
7 arch=(x86_64)
8 url=https://github.com/closeio/ciso8601
9 license=(MIT)
10 depends=(
11   glibc
12   python
14 makedepends=(
15   cython
16   git
17   python-setuptools
19 _tag=eeea0e483f0d710d711b38cfc8dcd5935a20177d
20 source=(git+https://github.com/closeio/ciso8601.git#tag=${_tag})
21 sha256sums=(SKIP)
23 pkgver() {
24   cd ciso8601
26   git describe --tags | sed 's/^v//'
29 build() {
30   cd ciso8601
32   python setup.py build
35 package() {
36   cd ciso8601
38   python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
39   install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-ciso8601/
42 # vim: ts=2 sw=2 et: