[arch-commits] Commit in (3 files)

Maxime Gauduin alucryd at archlinux.org
Thu Mar 19 12:13:39 UTC 2020


    Date: Thursday, March 19, 2020 @ 12:13:38
  Author: alucryd
Revision: 600863

add python-ciso8601

Added:
  python-ciso8601/
  python-ciso8601/trunk/
  python-ciso8601/trunk/PKGBUILD

----------+
 PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

Added: python-ciso8601/trunk/PKGBUILD
===================================================================
--- python-ciso8601/trunk/PKGBUILD	                        (rev 0)
+++ python-ciso8601/trunk/PKGBUILD	2020-03-19 12:13:38 UTC (rev 600863)
@@ -0,0 +1,41 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgname=python-ciso8601
+pkgver=2.1.3
+pkgrel=1
+pkgdesc='Fast ISO8601 date time parser for Python written in C'
+arch=(x86_64)
+url=https://github.com/closeio/ciso8601
+license=(MIT)
+depends=(
+  glibc
+  python
+)
+makedepends=(
+  cython
+  git
+  python-setuptools
+)
+source=(git+https://github.com/closeio/ciso8601.git#tag=42b7af38a619d0024be6a78be4efffcf33c749b0)
+sha256sums=(SKIP)
+
+pkgver() {
+  cd ciso8601
+
+  git describe --tags | sed 's/^v//'
+}
+
+build() {
+  cd ciso8601
+
+  python setup.py build
+}
+
+package() {
+  cd ciso8601
+
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+  install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-ciso8601/
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list