aports/testing/tiptop/APKBUILD
2023-04-30 03:19:26 +02:00

40 lines
1.4 KiB
Plaintext

# Maintainer: Mitch Tishmack <mitch.tishmack@gmail.com>
pkgname=tiptop
pkgver=2.3.1
pkgrel=2
pkgdesc="Tiptop: Hardware Performance Counters for the Masses"
url="https://gitlab.inria.fr/rohou/tiptop"
# Note: This tool requires two things to work:
# 1: hardware counters in the cpu itself
# 2: support in the kernel perf framework to use them
#
# Right now this applies to x86 only. Note this tool will compile
# elsewhere but without the aforementioned hardware support and kernel
# support, nothing of use will happen when run.
arch="x86 x86_64"
license="GPL-2.0"
makedepends="byacc flex linux-headers ncurses-dev libxml2-dev"
subpackages="$pkgname-doc"
source="https://files.inria.fr/pacap/tiptop/tiptop-$pkgver.tar.gz
format-security.patch
"
# Note, arg parsing appears to happen after attempting a perf syscall
# so while it would be nice to run tiptop -h to validate the compile worked
# there is a chance it might error out for no reason than the system building
# not having support for the syscall or hardware.
options="!check"
build() {
./configure --prefix=/usr
make
}
package() {
make install DESTDIR="$pkgdir"
}
sha512sums="
73d275bc3957583524c872b401cf4fa773de7b4e7b7177f1787851f43e7c4aeefd953eb50b2dbce3babfc7a1c46707370ba4ad06998260177994b2eafb91395b tiptop-2.3.1.tar.gz
ab588d526c20806e26e8d02fb0828cc5ecef94114993490c7ff869cc3f8d80af89f4e274414a27dc539ab456c3a0b8a3b9eb0d76a2e0a99d43031e9bd73203b1 format-security.patch
"