# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=powerpc-utils
pkgver=1.3.7
pkgrel=0
pkgdesc="Maintenance utilities for PowerPC computers"
url="https://github.com/ibm-power-utilities/powerpc-utils"
arch="ppc ppc64 ppc64le"
options="!check"  # No test suite.
license="GPL-2.0+"
depends="bash bc"
makedepends="autoconf automake zlib-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/ibm-power-utilities/$pkgname/archive/v$pkgver.tar.gz"

build() {
	./autogen.sh
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--without-librtas
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="e7ced7568d4a033131a4a543bf3128ffc1d5b1f5baf358b7bb73003e713145d3191dddee63b73d475dc0e257d54dd2470b02b15ba6ba9e49bb1d110091f2a541  powerpc-utils-1.3.7.tar.gz"