mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
0af05b343a
renamed checksums to kdeapps.sums added for all packages the pgp signature for new/removed packages check: https://community.kde.org/Applications/16.12_Release_Notes#Tarballs_that_we_have_split
45 lines
1.0 KiB
Bash
45 lines
1.0 KiB
Bash
pkgbase=python-mpmath
|
|
pkgname=('python2-mpmath' 'python3-mpmath')
|
|
pkgver=0.19
|
|
pkgrel=2
|
|
pkgdesc='Python library for arbitrary-precision floating-point arithmetic.'
|
|
arch=('any')
|
|
url='http://mpmath.org/'
|
|
license=('BSD')
|
|
makedepends=('python3-setuptools' 'python2-setuptools')
|
|
source=("http://mpmath.org/files/mpmath-${pkgver}.tar.gz")
|
|
sha1sums=('65da0ed4ed01d067f0f5b890ca28ad2f2fb56343')
|
|
|
|
prepare(){
|
|
cp -R mpmath-$pkgver mpmath2-$pkgver
|
|
}
|
|
|
|
build() {
|
|
cd mpmath2-$pkgver
|
|
python2 setup.py build
|
|
|
|
cd ../mpmath-$pkgver
|
|
python3 setup.py build
|
|
}
|
|
|
|
package_python2-mpmath() {
|
|
depends=('python2-gmpy2')
|
|
cd mpmath2-${pkgver}
|
|
|
|
find -name '*.py' | xargs sed -e 's|#!/usr/bin/python|#!/usr/bin/python2|' -i
|
|
|
|
python2 setup.py install --root "$pkgdir" --optimize=1
|
|
|
|
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
|
|
}
|
|
|
|
package_python3-mpmath() {
|
|
depends=('python3-gmpy2')
|
|
cd mpmath-${pkgver}
|
|
|
|
python3 setup.py install --root "$pkgdir" --optimize=1
|
|
|
|
install -D -m644 LICENSE $pkgdir/usr/share/licenses/${pkgname}/LICENSE
|
|
}
|
|
|