blob: 7491e8f7ce3815103dad889fde35e7099ac35b45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Maintainer: Alonso Rodríguez <alonso.rodriguez (at) udc.es>
# Contributor: Carlos Aznarán <caznaranl@uni.pe>
# Contributor: wuxb <wuxb45@gmail.com>
# Contributor: eolianoe <eolianoe At GoogleMAIL DoT com>
# Contributor: Jed Brown <jed@59A2.org>
pkgname=papi
pkgver=7.1.0
pkgrel=3
pkgdesc="Performance Application Programming Interface"
arch=('x86_64' 'i686')
url="http://icl.cs.utk.edu/${pkgname}"
license=('BSD')
options=('staticlibs')
depends=('glibc' 'gcc-fortran')
optdepends=('python')
source=("http://icl.cs.utk.edu/projects/${pkgname}/downloads/${pkgname}-${pkgver}.tar.gz"
'alderlakex-support.patch')
sha512sums=('6e427505b9237a2165dee8c198708a26f4b366ca31a424340206d29c56d04b13405d20a734f311a1f18cbbbc1b940eb5c93535cd734b0c796459623e93624219'
'6da4732f9fb87bad0359f1526bcfe00f8ea00ba47df0cabbf35a3324a5e309f9967a18bf9c9855d1cb753f5468161893f1ff8a37cf5114320a9e8466898c700d')
prepare() {
cd "${srcdir}"
# Make configure use bash
sed -i 's@#! /bin/sh@#!/bin/bash@g' ${pkgname}-${pkgver}/src/configure
# Patch for Alder Lake X support
patch -Np1 -i alderlakex-support.patch
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}/src"
export CFLAGS="-fPIC ${CFLAGS}"
./configure \
--prefix=/usr \
--with-static-lib=yes --with-shared-lib=yes \
--mandir=/usr/share/man \
--with-perf-events
make
}
check() {
cd "${srcdir}/${pkgname}-${pkgver}/src"
make test
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}/src"
mkdir -p $pkgdir/usr/bin
make DESTDIR="${pkgdir}" install
chmod 644 $pkgdir/usr/share/papi/papi_events.csv
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/LICENSE.txt \
${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
|