[arch-commits] Commit in coin-or-cbc/repos (2 files)
Antonio Rojas
arojas at gemini.archlinux.org
Wed Feb 2 07:47:36 UTC 2022
Date: Wednesday, February 2, 2022 @ 07:47:36
Author: arojas
Revision: 1122387
archrelease: copy trunk to community-staging-x86_64
Added:
coin-or-cbc/repos/community-staging-x86_64/
coin-or-cbc/repos/community-staging-x86_64/PKGBUILD
(from rev 1122386, coin-or-cbc/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: coin-or-cbc/repos/community-staging-x86_64/PKGBUILD (from rev 1122386, coin-or-cbc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-02-02 07:47:36 UTC (rev 1122387)
@@ -0,0 +1,38 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: spider-mario <spidermario at free.fr>
+# Contributor: Daniel Ehlers <danielehlers at mindeye.net>
+
+pkgname=coin-or-cbc
+pkgver=2.10.7
+pkgrel=2
+pkgdesc='COIN-OR branch-and-cut mixed integer programming solver'
+arch=(x86_64)
+url='https://github.com/coin-or/Cbc'
+license=(EPL)
+groups=(coin-or)
+depends=(coin-or-cgl coin-or-asl)
+makedepends=(nauty)
+source=($pkgname-$pkgver.tar.gz::https://github.com/coin-or/Cbc/archive/refs/tags/releases/$pkgver.tar.gz)
+sha256sums=('5aa5490e2bc39c3c03f3636c9bca459cb3f8f365e0280fd0c4759ce3119e5b19')
+
+build() {
+ cd Cbc-releases-$pkgver
+ ./configure --prefix=/usr \
+ --enable-cbc-parallel \
+ --with-nauty-lib=/usr/lib/libnauty.a --with-nauty-incdir=/usr/include/nauty
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+ make
+}
+
+check() {
+ cd Cbc-releases-$pkgver/Cbc
+ make test
+}
+
+package() {
+ cd Cbc-releases-$pkgver
+ make DESTDIR="$pkgdir" install
+
+# Remove nauty from linker flags in pc file, it is statically compiled
+# sed -e 's|/usr/lib/libnauty.a||' -i "$pkgdir"/usr/lib/pkgconfig/cbc.pc
+}
More information about the arch-commits
mailing list