PKGBUILDs/extra/oprofile/PKGBUILD

30 lines
989 B
Bash
Raw Normal View History

2009-10-10 02:23:22 +00:00
# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
# Maintainer : Aaron Griffin <aaron@archlinux.org>
pkgname=oprofile
pkgver=0.9.3
pkgrel=2
pkgdesc="a system-wide profiler for Linux systems, capable of profiling all running code at low overhead."
arch=(i686 x86_64)
url="http://oprofile.sourceforge.net"
license="GPL"
depends=(qt3 popt gcc)
source=(http://downloads.sourceforge.net/sourceforge/oprofile/$pkgname-$pkgver.tar.gz \
oprofile oprofile.conf)
md5sums=('bb91e4d5bd45ff0d5c3e6214653422b7' 'c17ea27694be82f73a735354352f3558'
'8da1393a0401e7cc9071e184902e50a3')
build()
{
cd $startdir/src/$pkgname-$pkgver
. /etc/profile.d/qt3.sh
./configure --prefix=/usr --with-kernel-support --with-x
make || return 1
make DESTDIR=$startdir/pkg install
mkdir -p $startdir/pkg/etc/rc.d/
install -m755 $startdir/src/oprofile $startdir/pkg/etc/rc.d/
mkdir -p $startdir/pkg/etc/conf.d/
install -m755 $startdir/src/oprofile.conf $startdir/pkg/etc/conf.d/oprofile
}