[arch-commits] Commit in python-pytimeparse/repos (2 files)
Caleb Maclennan
alerque at gemini.archlinux.org
Sat Dec 18 20:02:18 UTC 2021
Date: Saturday, December 18, 2021 @ 20:02:18
Author: alerque
Revision: 1077647
archrelease: copy trunk to community-any
Added:
python-pytimeparse/repos/community-any/
python-pytimeparse/repos/community-any/PKGBUILD
(from rev 1077645, python-pytimeparse/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: python-pytimeparse/repos/community-any/PKGBUILD (from rev 1077645, python-pytimeparse/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2021-12-18 20:02:18 UTC (rev 1077647)
@@ -0,0 +1,34 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Kewl <xrjy at nygb.rh.bet(rot13)>
+# Contributor: Lubomir 'Kuci' Kucera <kuci24-at-gmail-dot-com>
+
+pkgname=python-pytimeparse
+_pyname=${pkgname#python-}
+pkgver=1.1.8
+pkgrel=4
+pkgdesc='A small library to parse various kinds of time expressions'
+arch=(any)
+url="https://github.com/wroberts/$_pyname"
+license=(MIT)
+depends=(python)
+makedepends=(python-setuptools)
+checkdepends=(python-nose)
+_archive="$_pyname-$pkgver"
+source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz")
+sha256sums=('e86136477be924d7e670646a98561957e8ca7308d44841e21f5ddea757556a0a')
+
+build() {
+ cd "$_archive"
+ python setup.py build
+}
+
+check() {
+ cd "$_archive"
+ nosetests
+}
+
+package() {
+ cd "$_archive"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE.rst
+}
More information about the arch-commits
mailing list