Date: Wednesday, November 6, 2019 @ 21:12:26 Author: arojas Revision: 524422
Use system build flags, install library and headers (FS#64404) Modified: coin-or-csdp/trunk/PKGBUILD ----------+ PKGBUILD | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-11-06 20:42:36 UTC (rev 524421) +++ PKGBUILD 2019-11-06 21:12:26 UTC (rev 524422) @@ -4,7 +4,7 @@ pkgname='coin-or-csdp' pkgdesc="A C library for Semidefinite Programming" pkgver=6.2.0 -pkgrel=2 +pkgrel=3 arch=(x86_64) url='https://projects.coin-or.org/Csdp/' license=(CPL) @@ -16,8 +16,8 @@ cd Csdp-$pkgver # don't override CFLAGS sed -e '/CFLAGS/d' -i Makefile -# don't build static lib - sed -e 's|-static||' -i Makefile +# don't search for static libs, use system build flags + sed -e 's|-static|${LDFLAGS}|' -i Makefile } build() { @@ -35,10 +35,10 @@ package() { cd Csdp-$pkgver - install -dm755 "$pkgdir"/usr/bin - install -m755 solver/csdp "$pkgdir"/usr/bin - install -m755 theta/{theta,graphtoprob,complement,rand_graph} "$pkgdir"/usr/bin + install -Dm755 solver/csdp -t "$pkgdir"/usr/bin + install -m755 theta/{theta,graphtoprob,complement,rand_graph} -t "$pkgdir"/usr/bin + install -Dm644 lib/libsdp.a -t "$pkgdir"/usr/lib + install -Dm644 include/* -t "$pkgdir"/usr/include/csdp - install -dm755 "$pkgdir"/usr/share/licenses/csdp - install -m644 LICENSE "$pkgdir"/usr/share/licenses/csdp + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/csdp }