Package Details: libpfm4 4.7.0-1

Git Clone URL: (read-only)
Package Base: libpfm4
Description: Library to encode performance events for use by perf tool
Upstream URL:
Licenses: MIT
Conflicts: libpfm3
Submitter: None
Maintainer: bchretien
Last Packager: bchretien
Votes: 6
Popularity: 0.001093
First Submitted: 2011-11-04 09:36
Last Updated: 2016-03-31 14:41

Latest Comments

bchretien commented on 2014-04-03 17:47

@capjo: thanks! Package up-to-date ;-)

capjo commented on 2014-04-03 16:30

Version 4.5.0 is out.

I've updated the PKGBUILD file, but only testet on my x86_64 machine. It worked there. I removed the file and used sed instead to make it work on my machine. The description was also updated. I paste the new PKGBUILD simply in this commment.

# Maintainer: Benjamin Chretien <chretien at lirmm dot fr>
# Contributor: Håvard Espeland <>
pkgdesc="Library to encode performance events for use by perf tool"
arch=('x86_64' 'i686')

build() {
cd "$srcdir/libpfm-$pkgver"
sed -i 's|PREFIX=/usr/local|PREFIX=/usr|g'
sed -i 's|LDCONFIG=ldconfig|LDCONFIG=true|g'

check () {
cd "$srcdir/libpfm-$pkgver/tests"

package() {
cd "$srcdir/libpfm-$pkgver"

# Install libraries
make DESTDIR="$pkgdir/" install

# Install useful example files
make DESTDIR="$pkgdir/" install_examples

# Install license
install -D -m0644 COPYING "${pkgdir}"/usr/share/licenses/libpfm4/LICENSE

# vim:set ts=2 sw=2 et:

bchretien commented on 2013-12-13 17:49

@capjo: thanks, it's done ;-)

capjo commented on 2013-12-12 02:31


thanks for this package. The examples files are missing, however, and they are quite useful.

It would be nice to install them.

You need to modify the PKGBUILD script in the following way:

package() {
cd "$srcdir/libpfm-$pkgver"
sed -i 's/$(DOCDIR)/$(DESTDIR)$(DOCDIR)/g' perf_examples/Makefile
make DESTDIR="$pkgdir/" install
make DESTDIR="$pkgdir/" install_examples
install -D -m0644 COPYING "${pkgdir}"/usr/s hare/licenses/libpfm4/LICENSE

The sed line is necessary because of a bug in the Makefile. I already send a patch upstream.

bchretien commented on 2013-07-18 09:06

@haavares: ok, I will update it asap.

bchretien commented on 2013-07-18 09:06

Version 4.4.0 is out ;-)

Anonymous comment on 2013-07-18 09:02

I don't use arch at the moment. Disowned, but should be easy to update for lastest version.

bchretien commented on 2013-07-18 08:49

Version 4.4.0 is out ;-)