[arch-commits] Commit in (4 files)
Felix Yan
fyan at archlinux.org
Fri May 8 09:19:22 UTC 2015
Date: Friday, May 8, 2015 @ 11:19:22
Author: fyan
Revision: 132942
addpkg: python-pint 0.6-1
Added:
python-pint/
python-pint/repos/
python-pint/trunk/
python-pint/trunk/PKGBUILD
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Added: python-pint/trunk/PKGBUILD
===================================================================
--- python-pint/trunk/PKGBUILD (rev 0)
+++ python-pint/trunk/PKGBUILD 2015-05-08 09:19:22 UTC (rev 132942)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: Matthew Sloan matthew at sloan.cc
+
+pkgbase=python-pint
+pkgname=('python-pint' 'python2-pint')
+pkgver=0.6
+pkgrel=1
+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"
+}
Property changes on: python-pint/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list