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

Felix Yan felixonmars at archlinux.org
Tue Jul 7 13:37:32 UTC 2020


    Date: Tuesday, July 7, 2020 @ 13:37:31
  Author: felixonmars
Revision: 658541

archrelease: copy trunk to community-staging-x86_64

Added:
  dsdp/repos/community-staging-x86_64/
  dsdp/repos/community-staging-x86_64/PKGBUILD
    (from rev 658539, dsdp/trunk/PKGBUILD)
  dsdp/repos/community-staging-x86_64/make.include.patch
    (from rev 658539, 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 658539, dsdp/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 13:37:31 UTC (rev 658541)
@@ -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=5
+pkgdesc="A free open source implementation of an interior-point method for semidefinite programming"
+arch=('x86_64')
+url="https://www.mcs.anl.gov/hs/software/DSDP"
+license=('custom')
+depends=("lapack")
+source=("https://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 658539, dsdp/trunk/make.include.patch)
===================================================================
--- community-staging-x86_64/make.include.patch	                        (rev 0)
+++ community-staging-x86_64/make.include.patch	2020-07-07 13:37:31 UTC (rev 658541)
@@ -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