[arch-commits] Commit in coin-or-clp/trunk (PKGBUILD)
Antonio Rojas
arojas at gemini.archlinux.org
Wed Jan 12 08:08:16 UTC 2022
Date: Wednesday, January 12, 2022 @ 08:08:15
Author: arojas
Revision: 1101505
Update to 1.17.7
Modified:
coin-or-clp/trunk/PKGBUILD
----------+
PKGBUILD | 29 ++++++++++++-----------------
1 file changed, 12 insertions(+), 17 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-12 08:01:51 UTC (rev 1101504)
+++ PKGBUILD 2022-01-12 08:08:15 UTC (rev 1101505)
@@ -3,37 +3,32 @@
# Contributor: Daniel Ehlers <danielehlers at mindeye.net>
pkgname=coin-or-clp
-pkgver=1.17.6
+pkgver=1.17.7
pkgrel=1
-pkgdesc="COIN-OR linear programming solver"
+pkgdesc='COIN-OR linear programming solver'
arch=(x86_64)
-url="https://projects.coin-or.org/Clp"
+url='https://github.com/coin-or/Clp'
license=(EPL)
groups=(coin-or)
depends=(coin-or-osi suitesparse)
-source=("https://www.coin-or.org/download/source/Clp/Clp-${pkgver}.tgz")
-sha256sums=('f9cfcdd3db23bbc2d18b562012a7e25b99a40e8ce72dc296bd46dddb2970e12a')
+source=($pkgname-$pkgver.tar.gz::https://github.com/coin-or/Clp/archive/refs/tags/releases/$pkgver.tar.gz)
+sha256sums=('c4c2c0e014220ce8b6294f3be0f3a595a37bef58a14bf9bac406016e9e73b0f5')
build() {
- cd Clp-$pkgver/Clp
- COIN_SKIP_PROJECTS="Sample" \
+ cd Clp-releases-$pkgver
./configure --prefix=/usr \
- --with-osi-lib="$(pkg-config --libs osi)" \
- --with-osi-incdir="/usr/include/coin/" \
- --with-coinutils-lib="$(pkg-config --libs coinutils)" \
- --with-coinutils-incdir="/usr/include/coin/" \
- --with-cholmod-lib='-lcholmod' --with-cholmod-incdir=/usr/include
- sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+ --with-cholmod-lib='-lcholmod' \
+ --with-cholmod-incdir=/usr/include
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool # Fix overlinking
make
}
check() {
- cd Clp-$pkgver/Clp
-# make test
+ cd Clp-releases-$pkgver
+ make test
}
package() {
- cd Clp-$pkgver/Clp
- PKG_CONFIG_LIBDIR="$pkgdir"/usr/lib/pkgconfig/ \
+ cd Clp-releases-$pkgver
make DESTDIR="$pkgdir" install
}
More information about the arch-commits
mailing list