Skip to content

Commit

Permalink
Merge pull request #2 from 3rav/3rav-patch-1
Browse files Browse the repository at this point in the history
3rav patch 1
  • Loading branch information
3rav authored Sep 3, 2020
2 parents 6a6c077 + 2c27119 commit e12ab81
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions mingw-w64-hwloc/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Maintainer: Levente Polyak <[email protected]>
# Contributor: Stéphane Gaudreault <[email protected]>
# Contributor: Sylvain HENRY <[email protected]>
# Contributor: Hervé YVIQUEL <[email protected]>

_realname=hwloc

pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgdesc='Portable Hardware Locality is a portable abstraction of hierarchical architectures'
pkgver=2.2.0
pkgrel=1
arch=('any')
depends=("${MINGW_PACKAGE_PREFIX}-libtool")
makedepends=("${MINGW_PACKAGE_PREFIX}-cairo" "${MINGW_PACKAGE_PREFIX}-libxml2")
optdepends=("${MINGW_PACKAGE_PREFIX}-cairo" "${MINGW_PACKAGE_PREFIX}-libxml2")
options=('!docs')
license=('BSD')
url='https://www.open-mpi.org/projects/hwloc/'
source=(https://www.open-mpi.org/software/hwloc/v${pkgver%.*}/downloads/${_realname}-${pkgver}.tar.bz2)
sha512sums=('23efd1d5e2df870ca7a0abb9b3c28c5c5d60dd0cc650ee95d20d5934f48947cbe1d3cf4e90e02b2dc61062ddf7afd67f2c1cf6e1862a48397078d66dd798e850')
b2sums=('00e10f9c7467e6342e14a45d583ed307103428085a9b88398464f0439fec48647949aa80e099042b915b2c371fe105d61e8490d0555383d94740f3e6dab5aeee')

prepare() {
cd hwloc-${pkgver}
autoreconf -fiv
}

build() {
cd hwloc-${pkgver}
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--enable-static \
--enable-plugins \
--sysconfdir=/etc
make
}

check() {
cd hwloc-${pkgver}
make check-am
}

package() {
cd hwloc-${pkgver}
make DESTDIR="${pkgdir}" install
install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

# vim: ts=2 sw=2 et:

0 comments on commit e12ab81

Please sign in to comment.