mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 12:57:14 +08:00
34 lines
1.0 KiB
Bash
34 lines
1.0 KiB
Bash
# $Id$
|
|
# Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
|
|
# Contributor: Cristóvão D. Sousa <crisjss@gmail.com>
|
|
pkgname=dsdp
|
|
pkgver=5.8
|
|
pkgrel=2
|
|
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" "openblas")
|
|
source=("http://www.mcs.anl.gov/hs/software/${pkgname^^}/${pkgname^^}$pkgver.tar.gz"
|
|
"make.include.patch")
|
|
md5sums=('37c15a3c6c3f13e31262f65ac4364b5e'
|
|
'3c3493ffb8a2884f8b2e90034fa53504')
|
|
|
|
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
|
|
}
|