commit f31d46285eb19987975c04566ff246baa1959016 Author: Ido Rosen Date: Wed Oct 30 22:44:59 2013 -0400 Moved all AUR packages into 'aur' directory. diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cc879399fc12 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = coinor-csdp + pkgdesc = A C library for Semidefinite Programming (SDP) by B. Borchers. + pkgver = 6.1.1 + pkgrel = 3 + url = https://projects.coin-or.org/Csdp/ + arch = i686 + arch = x86_64 + license = CPL + makedepends = lapack + makedepends = blas + depends = blas + depends = lapack + options = !libtool + source = http://www.coin-or.org/download/source/Csdp/Csdp-6.1.1.tgz + sha512sums = ba5dc0faea223bad6293f131ee63daee0a395a6e84c76fe108dbbefb3ab0696b2a59f435766c78a2d22244801a9abda2719798cbfe30dd9e1c32317e0283fd2e + +pkgname = coinor-csdp + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7dcfc182b766 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,87 @@ +# $Id$ +# Maintainer: Ido Rosen +# +# NOTE: To request changes to this package, please submit a pull request +# to the GitHub repository at https://github.com/ido/packages-archlinux +# Otherwise, open a GitHub issue. Thank you! -Ido +# +# CSDP is a C library for Semidefinite Programming (SDP) retrieved from: +# https://projects.coin-or.org/Csdp/ +# From the above URL: ``CSDP is a library of routines that implements a +# predictor corrector variant of the semidefinite programming algorithm +# of Helmberg, Rendl, Vanderbei, and Wolkowicz. The main advantages of +# this code are that it is written to be used as a callable subroutine, +# it is written in C for efficiency, the code runs in parallel on shared +# memory multi-processor systems, and it makes effective use of sparsity +# in the constraint matrices. CSDP has been compiled on many different +# systems. The code should work on any system with an ANSI C Compiler +# and BLAS/LAPACK libraries.'' (9/21/2013) +# +# Detailed description available in: +# B. Borchers. ``CSDP, A C Library for Semidefinite Programming.'' +# Optimization Methods and Software 11(1):613-623, 1999. + +pkgname='coinor-csdp' +pkgdesc="A C library for Semidefinite Programming (SDP) by B. Borchers." +pkgver=6.1.1 +pkgrel=3 +arch=('i686' 'x86_64') +url='https://projects.coin-or.org/Csdp/' +license=('CPL') +depends=('blas' 'lapack') +makedepends=('lapack' 'blas') +options=('!libtool') +source=(http://www.coin-or.org/download/source/Csdp/Csdp-${pkgver}.tgz) +sha512sums=('ba5dc0faea223bad6293f131ee63daee0a395a6e84c76fe108dbbefb3ab0696b2a59f435766c78a2d22244801a9abda2719798cbfe30dd9e1c32317e0283fd2e') + +build() { + cd "${srcdir}/Csdp-${pkgver}" + + make +} + +check() { + cd "${srcdir}/Csdp-${pkgver}" + + make unitTest +} + +package() { + cd "${srcdir}/Csdp-${pkgver}" + + # XXX: Since Csdp's make install doesn't honor DESTDIR, the below is copied + # and modified from Csdp-$pkgver/Makefile: + install -dm755 "${pkgdir}/usr/bin" + install -m755 solver/csdp "${pkgdir}/usr/bin" + install -m755 theta/theta "${pkgdir}/usr/bin" + install -m755 theta/graphtoprob "${pkgdir}/usr/bin" + install -m755 theta/complement "${pkgdir}/usr/bin" + install -m755 theta/rand_graph "${pkgdir}/usr/bin" + # end of make install + + # Install static library: + install -dm755 "${pkgdir}/usr/lib" + install -m644 lib/libsdp.a "${pkgdir}/usr/lib" + + # Install header files: + install -dm755 "${pkgdir}/usr/include/coinor-csdp" + cp -r include/. "${pkgdir}/usr/include/coinor-csdp/." + + # Install documentation: + install -dm755 "${pkgdir}/usr/share/doc/coinor-csdp" + install -m644 example/example.c "${pkgdir}/usr/share/doc/coinor-csdp" + install -m644 LICENSE "${pkgdir}/usr/share/doc/coinor-csdp" + install -m644 AUTHORS "${pkgdir}/usr/share/doc/coinor-csdp" + install -m644 README "${pkgdir}/usr/share/doc/coinor-csdp" + install -m644 INSTALL "${pkgdir}/usr/share/doc/coinor-csdp" + install -m644 doc/csdpuser.pdf "${pkgdir}/usr/share/doc/coinor-csdp" + + # Install MATLAB toolbox: + install -dm755 "${pkgdir}/usr/share/doc/coinor-csdp/matlab" + cp -r matlab/. "${pkgdir}/usr/share/doc/coinor-csdp/matlab/." + + # Install LICENSE file: + install -dm755 "${pkgdir}/usr/share/licenses/coinor-csdp/" + ln -s /usr/share/doc/coinor-csdp/LICENSE "${pkgdir}/usr/share/licenses/coinor-csdp/LICENSE" + +}