diff options
author | Michel Zou | 2020-03-02 10:32:03 +0100 |
---|---|---|
committer | Michel Zou | 2020-03-02 10:32:03 +0100 |
commit | 4bc5d49ce52e8bfaeadec748911129faafa24b5d (patch) | |
tree | a9524fa1c16fda912dc7f965f25d19a3d2b78d91 /PKGBUILD | |
download | aur-4bc5d49ce52e8bfaeadec748911129faafa24b5d.tar.gz |
2.1.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c0168939371a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +pkgname=mingw-w64-hwloc +pkgver=2.1.0 +pkgrel=1 +pkgdesc='Portable Hardware Locality is a portable abstraction of hierarchical architectures (mingw-w64)' +url='https://www.open-mpi.org/projects/hwloc/' +arch=('any') +license=('BSD') +depends=('mingw-w64-libxml2' 'mingw-w64-xz') +makedepends=('mingw-w64-configure') +options=('!buildflags' 'staticlibs' '!strip') +source=("https://www.open-mpi.org/software/hwloc/v${pkgver%.*}/downloads/hwloc-${pkgver}.tar.bz2") +sha256sums=('19429752f772cf68321196970ffb10dafd7e02ab38d2b3382b157c78efd10862') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +prepare() { + cd hwloc-${pkgver} + sed -i "161,162d" utils/hwloc/Makefile.am + autoreconf -fiv +} + +build() { + cd hwloc-${pkgver} + for _arch in ${_architectures}; do + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-configure --disable-netloc .. + make + popd + done +} + +package() { + cd hwloc-${pkgver} + for _arch in ${_architectures}; do + cd "$srcdir/hwloc-${pkgver}/build-${_arch}" + make install DESTDIR="$pkgdir" + rm "$pkgdir"/usr/${_arch}/*.txt + rm "$pkgdir"/usr/${_arch}/bin/*.exe + rm -r "$pkgdir"/usr/${_arch}/etc + rm -r "$pkgdir"/usr/${_arch}/share/{doc,man} + ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll + ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a + done +} |