[arch-commits] Commit in dsdp/repos (3 files)

Felix Yan felixonmars at archlinux.org
Fri Nov 9 22:36:42 UTC 2018


    Date: Friday, November 9, 2018 @ 22:36:42
  Author: felixonmars
Revision: 405019

archrelease: copy trunk to community-staging-x86_64

Added:
  dsdp/repos/community-staging-x86_64/
  dsdp/repos/community-staging-x86_64/PKGBUILD
    (from rev 405018, dsdp/trunk/PKGBUILD)
  dsdp/repos/community-staging-x86_64/make.include.patch
    (from rev 405018, dsdp/trunk/make.include.patch)

--------------------+
 PKGBUILD           |   32 ++++++++++++++++++++++++++++++++
 make.include.patch |   14 ++++++++++++++
 2 files changed, 46 insertions(+)

Copied: dsdp/repos/community-staging-x86_64/PKGBUILD (from rev 405018, dsdp/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-11-09 22:36:42 UTC (rev 405019)
@@ -0,0 +1,32 @@
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: Cristóvão D. Sousa <crisjss at gmail.com>
+pkgname=dsdp
+pkgver=5.8
+pkgrel=3
+pkgdesc="A free open source implementation of an interior-point method for semidefinite programming"
+arch=('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
+}

Copied: dsdp/repos/community-staging-x86_64/make.include.patch (from rev 405018, dsdp/trunk/make.include.patch)
===================================================================
--- community-staging-x86_64/make.include.patch	                        (rev 0)
+++ community-staging-x86_64/make.include.patch	2018-11-09 22:36:42 UTC (rev 405019)
@@ -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



More information about the arch-commits mailing list