[arch-commits] Commit in python2-tempora/repos (3 files)

Thore Bödecker foxxx0 at archlinux.org
Tue Jan 7 08:40:10 UTC 2020


    Date: Tuesday, January 7, 2020 @ 08:40:10
  Author: foxxx0
Revision: 549805

archrelease: copy trunk to community-any

Added:
  python2-tempora/repos/community-any/
  python2-tempora/repos/community-any/LICENSE
    (from rev 549804, python2-tempora/trunk/LICENSE)
  python2-tempora/repos/community-any/PKGBUILD
    (from rev 549804, python2-tempora/trunk/PKGBUILD)

----------+
 LICENSE  |    7 +++++++
 PKGBUILD |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+)

Copied: python2-tempora/repos/community-any/LICENSE (from rev 549804, python2-tempora/trunk/LICENSE)
===================================================================
--- community-any/LICENSE	                        (rev 0)
+++ community-any/LICENSE	2020-01-07 08:40:10 UTC (rev 549805)
@@ -0,0 +1,7 @@
+Copyright Jason R. Coombs
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Copied: python2-tempora/repos/community-any/PKGBUILD (from rev 549804, python2-tempora/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-01-07 08:40:10 UTC (rev 549805)
@@ -0,0 +1,47 @@
+# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
+# Contributor: Laurent Soest <laurent.soest(at)gmail.com>
+
+pkgname='python2-tempora'
+_pkgbase="${pkgname//python2-/}"
+pkgver=1.14.1
+pkgrel=5
+pkgdesc="Objects and routines pertaining to date and time (tempora)."
+arch=('any')
+url="https://github.com/jaraco/tempora"
+license=('MIT')
+depends=('python2' 'python2-six' 'python2-pytz' 'python2-jaraco')
+makedepends=('python2-setuptools' 'python2-setuptools-scm' 'python2-six'
+             'python2-pytz' 'python2-jaraco')
+checkdepends=('python2-tox' 'python2-backports.unittest_mock')
+source=("https://files.pythonhosted.org/packages/source/${_pkgbase:0:1}/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz"
+        'LICENSE')
+sha512sums=('4ecd5430d4d90959b0985908a1e4f239a56ce0026cd315ef6b8c204b645caccb135db76bb2ca9cb95bc65bdf337b61e7c31514eb9c85036771469b6a058edfbb'
+            '1106afed483b7258e4ae89c5d9459c3834412b31aac90169725ed62d2ab44f61f6f79e894d4c9e4d8bd99e14530ab778df2187784f0b25eaab86d312fad68944')
+
+build() {
+    # setuptools wont find version from git tag
+
+    export SETUPTOOLS_SCM_PRETEND_VERSION="${pkgver}"
+    cd "${srcdir}/${_pkgbase}-${pkgver}"
+    python2 ./setup.py build
+}
+
+check() {
+    # setuptools wont find version from git tag
+    export SETUPTOOLS_SCM_PRETEND_VERSION="${pkgver}"
+
+    cd "${srcdir}/${_pkgbase}-${pkgver}"
+    tox2
+}
+
+package() {
+    cd "${srcdir}/${_pkgbase}-${pkgver}"
+    python2 ./setup.py install --root="${pkgdir}" --optimize=1
+    mv "${pkgdir}/usr/bin/calc-prorate" "${pkgdir}/usr/bin/calc-prorate2"
+
+    # the author has promised to include a LICENSE file in future releases:
+    # https://github.com/jaraco/skeleton/issues/1
+    # for now the LICENSE file has been taken from:
+    # https://github.com/jaraco/skeleton/blob/skeleton/LICENSE
+    install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list