[arch-commits] Commit in python-intervals/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 19:57:47 UTC 2019
Date: Friday, October 25, 2019 @ 19:57:47
Author: felixonmars
Revision: 519650
archrelease: copy trunk to community-staging-any
Added:
python-intervals/repos/community-staging-any/
python-intervals/repos/community-staging-any/PKGBUILD
(from rev 519649, python-intervals/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-intervals/repos/community-staging-any/PKGBUILD (from rev 519649, python-intervals/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 19:57:47 UTC (rev 519650)
@@ -0,0 +1,32 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Contributor: Husam Bilal <husam212 AT gmail DOT com>
+
+_name=intervals
+pkgname="python-${_name}"
+pkgver=0.8.1
+pkgrel=2
+pkgdesc='Python tools for handling intervals (ranges of comparable objects).'
+url='https://github.com/kvesteri/intervals'
+depends=('python' 'python-infinity')
+checkdepends=('python-pytest')
+makedepends=('python' 'python-setuptools')
+license=('BSD')
+arch=('any')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('f97142d5f1c8d4da21692b856803481878ac2b2afc3b81937de456bacbf66ebb129b1fe9a070ac442cbc6bbe26fdaf2ed839f8fc8b26392b4bd1ce032d054e65')
+
+build() {
+ cd "${srcdir}/${_name}-${pkgver}"
+ python setup.py build
+}
+
+check() {
+ cd "${srcdir}/${_name}-${pkgver}"
+ py.test
+}
+
+package() {
+ cd "${srcdir}/${_name}-${pkgver}"
+ python setup.py install --root="${pkgdir}/" --optimize=1
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
More information about the arch-commits
mailing list