[arch-commits] Commit in python-pint/repos (2 files)

Felix Yan fyan at archlinux.org
Sat Sep 19 13:03:38 UTC 2015


    Date: Saturday, September 19, 2015 @ 15:03:38
  Author: fyan
Revision: 140797

archrelease: copy trunk to community-staging-any

Added:
  python-pint/repos/community-staging-any/
  python-pint/repos/community-staging-any/PKGBUILD
    (from rev 140796, python-pint/trunk/PKGBUILD)

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

Copied: python-pint/repos/community-staging-any/PKGBUILD (from rev 140796, python-pint/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 13:03:38 UTC (rev 140797)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Matthew Sloan matthew at sloan.cc
+
+pkgbase=python-pint
+pkgname=('python-pint' 'python2-pint')
+pkgver=0.6
+pkgrel=2
+pkgdesc="A unit library for Python"
+arch=('any')
+license=('BSD')
+url="http://pint.readthedocs.org"
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-numpy' 'python2-numpy')  # 'python-uncertainties' 'python2-uncertainties'
+source=("https://pypi.python.org/packages/source/P/Pint/Pint-${pkgver}.zip")
+md5sums=('88aa0918019071546b10c5fbdc91ae5e')
+
+prepare() {
+  cp -a Pint-$pkgver{,-py2}
+}
+
+check() {
+  cd "$srcdir/Pint-${pkgver}"
+  python setup.py test
+
+  cd "$srcdir/Pint-${pkgver}-py2"
+  python2 setup.py test
+}
+
+package_python-pint() {
+  depends=('python')
+
+  cd "${srcdir}/Pint-${pkgver}"
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-pint() {
+  depends=('python2')
+
+  cd "${srcdir}/Pint-${pkgver}-py2"
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list