packages/sysfsutils/PKGBUILD

37 lines
745 B
Bash

# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
pkgname=sysfsutils
pkgver=2.1.1
pkgrel=2
pkgdesc="System Utilities Based on Sysfs"
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
license=('GPL-2.0-only' 'LGPL-2.0-only')
url="http://linux-diag.sourceforge.net/Sysfsutils.html"
depends=('glibc')
makedepends=('git')
source=("git+https://github.com/linux-ras/sysfsutils.git#tag=v${pkgver}")
b2sums=('SKIP')
prepare() {
cd "$pkgname"
./autogen
}
build() {
cd "$pkgname"
./configure --prefix=/usr --mandir=/usr/share/man
make
}
check() {
cd "$pkgname"
make check
}
package() {
cd "$pkgname"
make DESTDIR="$pkgdir" install
rm "$pkgdir/usr/lib/libsysfs.a"
}