mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 11:04:36 +08:00
second attempt
This commit is contained in:
parent
d51bc2caec
commit
19feec75f5
33
dsdp/PKGBUILD
Normal file
33
dsdp/PKGBUILD
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
# $Id$
|
||||||
|
# Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
|
||||||
|
# Contributor: Cristóvão D. Sousa <crisjss@gmail.com>
|
||||||
|
pkgname=dsdp
|
||||||
|
pkgver=5.8
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="A free open source implementation of an interior-point method for semidefinite programming"
|
||||||
|
arch=('i686' 'x86_64')
|
||||||
|
url="http://www.mcs.anl.gov/hs/software/DSDP"
|
||||||
|
license=('custom')
|
||||||
|
depends=("lapack" "blas")
|
||||||
|
source=("http://www.mcs.anl.gov/hs/software/${pkgname^^}/${pkgname^^}$pkgver.tar.gz"
|
||||||
|
"make.include.patch")
|
||||||
|
md5sums=('37c15a3c6c3f13e31262f65ac4364b5e'
|
||||||
|
'd90d4bf5ce00f6f86722db2624675ae5')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "$srcdir/${pkgname^^}$pkgver"
|
||||||
|
|
||||||
|
patch make.include < "$srcdir/make.include.patch"
|
||||||
|
|
||||||
|
make DSDPROOT="$srcdir/${pkgname^^}$pkgver" dsdpapi
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$srcdir/${pkgname^^}$pkgver"
|
||||||
|
|
||||||
|
install -d "$pkgdir"/usr/{lib,include/dsdp}
|
||||||
|
install -Dm755 bin/dsdp5 "$pkgdir"/usr/bin/dsdp5
|
||||||
|
install -Dm644 lib/* "$pkgdir"/usr/lib/
|
||||||
|
install -Dm644 include/*.h "$pkgdir"/usr/include/dsdp/
|
||||||
|
install -Dm644 dsdp-license "$pkgdir"/usr/share/licenses/$pkgname/dsdp-license
|
||||||
|
}
|
14
dsdp/make.include.patch
Normal file
14
dsdp/make.include.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
24c24
|
||||||
|
< OPTFLAGS = -O3
|
||||||
|
---
|
||||||
|
> OPTFLAGS = -O3 -fPIC
|
||||||
|
46,47c46,47
|
||||||
|
< CFLAGS = ${OPTFLAGS} -I. -I${DSDPROOT}/include ${DSDPCFLAGS}
|
||||||
|
< CLINKER = ${CC} ${OPTFLAGS}
|
||||||
|
---
|
||||||
|
> CFLAGS := ${CFLAGS} ${OPTFLAGS} -I. -I${DSDPROOT}/include ${DSDPCFLAGS}
|
||||||
|
> CLINKER = ${CC} ${LDFLAGS} ${OPTFLAGS}
|
||||||
|
58c58
|
||||||
|
< LAPACKBLAS = -llapack -lblas -lg2c -lm
|
||||||
|
---
|
||||||
|
> LAPACKBLAS = -llapack -lblas -lgfortran -lm
|
37
python-gmpy2/PKGBUILD
Normal file
37
python-gmpy2/PKGBUILD
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
# $Id$
|
||||||
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
||||||
|
# Maintainer: Omar Sandoval <osandov at cs dot washington dot edu>
|
||||||
|
# Contributor: Alexander Slesarev <slesarew at gmail dot com>
|
||||||
|
|
||||||
|
pkgbase=python-gmpy2
|
||||||
|
pkgname=('python2-gmpy2' 'python3-gmpy2')
|
||||||
|
pkgver=2.0.5
|
||||||
|
pkgrel=2
|
||||||
|
pkgdesc="Provides C-coded Python modules for fast multiple-precision arithmetic."
|
||||||
|
arch=('i686' 'x86_64')
|
||||||
|
url="http://code.google.com/p/gmpy/"
|
||||||
|
license=('LGPL2.1')
|
||||||
|
makedepends=('python2' 'python3' 'libmpc')
|
||||||
|
source=("https://pypi.python.org/packages/source/g/gmpy2/gmpy2-${pkgver}.zip")
|
||||||
|
md5sums=('95f008bcab6372164358123f43e3f490')
|
||||||
|
|
||||||
|
package_python2-gmpy2() {
|
||||||
|
depends=('python2' 'libmpc')
|
||||||
|
|
||||||
|
cd gmpy2-$pkgver
|
||||||
|
python2 setup.py install --root=$pkgdir --optimize=1
|
||||||
|
|
||||||
|
install -d -m 755 $pkgdir/usr/share/doc/$pkgname
|
||||||
|
install -m 644 -t $pkgdir/usr/share/doc/$pkgname docs/*
|
||||||
|
}
|
||||||
|
|
||||||
|
package_python3-gmpy2() {
|
||||||
|
depends=('python3' 'libmpc')
|
||||||
|
|
||||||
|
cd gmpy2-$pkgver
|
||||||
|
python3 setup.py install --root=$pkgdir --optimize=1
|
||||||
|
|
||||||
|
install -d -m 755 $pkgdir/usr/share/doc/$pkgname
|
||||||
|
install -m 644 -t $pkgdir/usr/share/doc/$pkgname docs/*
|
||||||
|
}
|
||||||
|
|
@ -8,12 +8,12 @@
|
|||||||
pkgbase=python-mpmath
|
pkgbase=python-mpmath
|
||||||
pkgname=('python2-mpmath' 'python3-mpmath')
|
pkgname=('python2-mpmath' 'python3-mpmath')
|
||||||
pkgver=0.19
|
pkgver=0.19
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc='Python library for arbitrary-precision floating-point arithmetic.'
|
pkgdesc='Python library for arbitrary-precision floating-point arithmetic.'
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url='http://mpmath.org/'
|
url='http://mpmath.org/'
|
||||||
license=('BSD')
|
license=('BSD')
|
||||||
makedepends=('python' 'python2')
|
makedepends=('python' 'python2' 'python3-gmpy2' 'python2-gmpy2')
|
||||||
source=("http://mpmath.org/files/mpmath-${pkgver}.tar.gz")
|
source=("http://mpmath.org/files/mpmath-${pkgver}.tar.gz")
|
||||||
md5sums=('af5cc956b2673b33a25c3e57299bae7b')
|
md5sums=('af5cc956b2673b33a25c3e57299bae7b')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user