[arch-commits] Commit in python-dateparser/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Sun Mar 6 15:47:43 UTC 2022
Date: Sunday, March 6, 2022 @ 15:47:42
Author: felixonmars
Revision: 1142534
archrelease: copy trunk to community-staging-any
Added:
python-dateparser/repos/community-staging-any/
python-dateparser/repos/community-staging-any/PKGBUILD
(from rev 1142533, python-dateparser/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: python-dateparser/repos/community-staging-any/PKGBUILD (from rev 1142533, python-dateparser/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2022-03-06 15:47:42 UTC (rev 1142534)
@@ -0,0 +1,45 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Stefan Husmann <stefan-husmann at t-online.de>
+
+pkgname=python-dateparser
+pkgver=1.1.0
+pkgrel=4
+pkgdesc='Python parser for human readable dates'
+url=https://github.com/scrapinghub/dateparser
+arch=(any)
+license=(BSD)
+depends=(
+ python-dateutil
+ python-pytz
+ python-regex
+ python-tzlocal
+ python-ruamel-yaml
+)
+makedepends=(
+ git
+ python-setuptools
+)
+_tag=507dc6dd775429d89481083db57d56851b704744
+source=(git+https://github.com/scrapinghub/dateparser.git#tag=${_tag})
+sha256sums=(SKIP)
+
+pkgver() {
+ cd dateparser
+
+ git describe --tags | sed 's/^v//'
+}
+
+build() {
+ cd dateparser
+
+ python setup.py build
+}
+
+package() {
+ cd dateparser
+
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-dateparser/
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list