vp-build/srcpkgs/papi/template

36 lines
969 B
Bash

# Template file for 'papi'
pkgname=papi
version=5.6.0
revision=1
wrksrc="papi-${version}"
build_wrksrc="src"
build_style=gnu-configure
short_desc="Provides interface for use of performance counter hardware"
maintainer="johannes <johannes.brechtmann@gmail.com>"
license="BSD"
homepage="http://icl.cs.utk.edu/papi/"
distfiles="http://icl.utk.edu/projects/papi/downloads/papi-${version}.tar.gz"
checksum=49b7293f9ca2d74d6d80bd06b5c4be303663123267b4ac0884cbcae4c914dc47
if [ -n "$CROSS_BUILD" ]; then
_ARCH="${XBPS_TARGET_MACHINE%-musl}"
configure_args+=" --with-ffsll --with-tls
--with-walltimer=clock_realtime --with-virtualtimer=cloc_thread_cputime_id
--with-CPU=${_ARCH} --with-arch=${_ARCH}"
fi
post_install() {
vlicense ../LICENSE.txt
}
papi-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/pkgconfig
vmove usr/share/man/man3
}
}