diff options
author | Michel Zou | 2019-11-28 19:08:46 +0100 |
---|---|---|
committer | Michel Zou | 2019-11-28 19:08:46 +0100 |
commit | fa55008fb368df1aed452ae1549b9aa6149fae4b (patch) | |
tree | 9c7d51edd4698bab5a669614434d719fb82110eb | |
download | aur-fa55008fb368df1aed452ae1549b9aa6149fae4b.tar.gz |
1.3.8
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c6c4b8ea5e3f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = mingw-w64-coin-or-coinmetis + pkgdesc = COIN-OR autotools harness to build Metis (mingw-w64) + pkgver = 1.3.8 + pkgrel = 1 + url = https://github.com/coin-or-tools/ThirdParty-Metis/ + arch = any + groups = coin-or + license = custom + makedepends = mingw-w64-configure + depends = mingw-w64-crt + options = !buildflags + options = !strip + options = staticlibs + source = https://github.com/coin-or-tools/ThirdParty-Metis/archive/releases/1.3.8.tar.gz + sha256sums = 97bf0f8787c1a6491fd2de2a8053872d7786d00b29cb574c851c32cd9aae3673 + +pkgname = mingw-w64-coin-or-coinmetis + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2a0222d06e18 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +pkgname=mingw-w64-coin-or-coinmetis +pkgver=1.3.8 +pkgrel=1 +pkgdesc="COIN-OR autotools harness to build Metis (mingw-w64)" +arch=('any') +url="https://github.com/coin-or-tools/ThirdParty-Metis/" +license=('custom') +groups=('coin-or') +depends=('mingw-w64-crt') +makedepends=('mingw-w64-configure') +options=('!buildflags' '!strip' 'staticlibs') +source=("https://github.com/coin-or-tools/ThirdParty-Metis/archive/releases/$pkgver.tar.gz") +sha256sums=('97bf0f8787c1a6491fd2de2a8053872d7786d00b29cb574c851c32cd9aae3673') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +prepare () { + cd "ThirdParty-Metis-releases-$pkgver" + ./get.Metis +} + +build() { + cd "ThirdParty-Metis-releases-$pkgver" + for _arch in ${_architectures}; do + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-configure lt_cv_deplibs_check_method=pass_all .. + make + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "${srcdir}/ThirdParty-Metis-releases-${pkgver}/build-${_arch}" + make DESTDIR="${pkgdir}" install + ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll + ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a + done +} |