# Maintainer: Natanael Copa pkgname=sigar pkgver=1.6.4 pkgrel=1 pkgdesc="System Information Gatherer And Reporter" url="http://sigar.hyperic.com/" arch="x86_64 x86 ppc64le aarch64" license="Apache-2.0" depends="" depends_dev="" makedepends="$depends_dev libtirpc-dev perl apache-ant openjdk8" install="" subpackages="" source="https://github.com/hyperic/sigar/archive/sigar-$pkgver.tar.gz 0001-fix-compilation-with-musl-libc.patch 0002-only-enable-the-GNU-libc-strerror_r-on-GNU-libc.patch 0003-build-with-libtirpc-and-gcc5.patch fix-aarch64.patch " builddir="$srcdir"/sigar-sigar-$pkgver build() { cd "$builddir"/bindings/java ant } package() { cd "$builddir"/bindings/java mkdir -p "$pkgdir"/usr/lib install ./sigar-bin/lib/libsigar-*.so "$pkgdir"/usr/lib/ } sha512sums="0515f3501a51357d6ac01dc5e3ecffae10995f347b98c66928adff247b86e52112d2bf9cf78b2633941eb9c7fb23f019f4885c41348fe461239e4eebd147253e sigar-1.6.4.tar.gz 577f10add8dfe3f1e97375aba06fdecb4ae9d64d75246107cde2183a9efee5eeb8f2c00c072397e2ac4bba2dc49e67c5efef141c609f84a6128d03f3f5187d05 0001-fix-compilation-with-musl-libc.patch 12f68a3c3449b98a45458aa189a633d32ccc9adab83e04e84c8e496c1e0545a58ecc86fdcb68d55b162f5717244f69a48f0a13241b672c909993dc13643c8c64 0002-only-enable-the-GNU-libc-strerror_r-on-GNU-libc.patch 1896f8deb1945dd18283cb391528791b7554b2a4d56c0bc02a58d36a6af2a333782486a508e4d756b558d522d9a759bb3eefe12f0fd1720a9b83426d2b9bf469 0003-build-with-libtirpc-and-gcc5.patch e178aa27634fa13784af17fc7af66091b7f1cd51fb54ff2e004755004c7d53e48e08db9982b7c2eec96d0f662bbf32a07346c103f3b31bd5a3e72ef8d8bf44bf fix-aarch64.patch"