[arch-commits] Commit in python-fastnumbers/repos (2 files)
David Runge
dvzrv at archlinux.org
Sun Sep 2 21:11:33 UTC 2018
Date: Sunday, September 2, 2018 @ 21:11:33
Author: dvzrv
Revision: 376088
archrelease: copy trunk to community-testing-x86_64
Added:
python-fastnumbers/repos/community-testing-x86_64/
python-fastnumbers/repos/community-testing-x86_64/PKGBUILD
(from rev 376087, python-fastnumbers/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: python-fastnumbers/repos/community-testing-x86_64/PKGBUILD (from rev 376087, python-fastnumbers/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2018-09-02 21:11:33 UTC (rev 376088)
@@ -0,0 +1,40 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+_name=fastnumbers
+pkgname=python-fastnumbers
+pkgver=2.1.1
+pkgrel=1
+pkgdesc="Super-fast and clean conversions to numbers"
+arch=('x86_64')
+url="https://github.com/SethMMorton/fastnumbers"
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-hypothesis')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('11c7a3ec8b85ab85e4045fcc458a67a70b293485690871bc45b14d74edef03ab5ca6b62c4f9ebf0f2064528c7225f16ca8034bbd242125db58d1ab593b7c1c1e')
+
+prepare() {
+ mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ local _py3_ver=$(python --version | cut -d " " -f2)
+ export PYTHONPATH="build/lib.linux-$CARCH-${_py3_ver%"."*}:${PYTHONPATH}"
+ py.test
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --prefix=/usr \
+ --root="${pkgdir}"
+ install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
More information about the arch-commits
mailing list