# Contributor: Breno Leitao <breno.leitao@gmail.com>
# Maintainer:
pkgname=librtas
pkgver=2.0.5
pkgrel=0
pkgdesc="Librtas provides a set of libraries that access Run-Time Abstraction Services (RTAS)"
url="https://github.com/ibm-power-utilities/librtas"
arch="ppc64le"
options="!check"
license="LGPL-2.1-or-later"
makedepends="autoconf automake libtool linux-headers"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/ibm-power-utilities/librtas/archive/v$pkgver.tar.gz"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

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

sha512sums="
afc4f3417321f68494439d837cbda9a32bef9ac67e7f2514687f6be1f38fe4719c33ce4eee01bfbd575f052677b0303dcc1d4b392bcbfa6f464299a3353bd9c4  librtas-2.0.5.tar.gz
"
