[arch-commits] Commit in python-gmpy2/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 15:52:33 UTC 2019
Date: Friday, October 25, 2019 @ 15:52:32
Author: felixonmars
Revision: 519240
archrelease: copy trunk to community-staging-x86_64
Added:
python-gmpy2/repos/community-staging-x86_64/
python-gmpy2/repos/community-staging-x86_64/PKGBUILD
(from rev 519238, python-gmpy2/trunk/PKGBUILD)
----------+
PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
Copied: python-gmpy2/repos/community-staging-x86_64/PKGBUILD (from rev 519238, python-gmpy2/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-10-25 15:52:32 UTC (rev 519240)
@@ -0,0 +1,48 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Omar Sandoval <osandov at cs dot washington dot edu>
+# Contributor: Alexander Slesarev <slesarew at gmail dot com>
+
+pkgbase=python-gmpy2
+pkgname=(python2-gmpy2 python-gmpy2)
+pkgver=2.1.0b1
+pkgrel=2
+pkgdesc="Provides C-coded Python modules for fast multiple-precision arithmetic."
+arch=(x86_64)
+url="https://github.com/aleaxit/gmpy"
+license=(LGPL2.1)
+makedepends=(python2-setuptools python-setuptools libmpc git)
+source=("$pkgname-$pkgver.tar.gz::https://github.com/aleaxit/gmpy/archive/gmpy2-$pkgver.tar.gz")
+sha256sums=('888d3c34a91c2ac068ac5033431c765e04f125e85920bd69d8739fbb62f4279d')
+
+prepare() {
+ cp -r gmpy-gmpy2-$pkgver{,-py2}
+}
+
+build() {
+ cd gmpy-gmpy2-$pkgver
+ python setup.py build
+
+ cd ../gmpy-gmpy2-$pkgver-py2
+ python2 setup.py build
+}
+
+package_python2-gmpy2() {
+ depends=(python2 libmpc)
+
+ cd gmpy-gmpy2-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ install -d -m 755 $pkgdir/usr/share/doc/$pkgname
+ install -m 644 -t $pkgdir/usr/share/doc/$pkgname docs/*
+}
+
+package_python-gmpy2() {
+ depends=(python libmpc)
+
+ cd gmpy-gmpy2-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ install -d -m 755 $pkgdir/usr/share/doc/$pkgname
+ install -m 644 -t $pkgdir/usr/share/doc/$pkgname docs/*
+}
+
More information about the arch-commits
mailing list