aboutsummaryrefslogblamecommitdiffstats
path: root/main/oprofile/APKBUILD
blob: c5dc1eebf3de73151d244f2c81e93ce77e27fbfa (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                                             
        

                                      
                 

             
                                               








                                                                           


                                                         











                                                        



                                     







                                                                              
# Contributor: Timo Teras <timo.teras@iki.fi>
# Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=oprofile
pkgver=0.9.6
pkgrel=1
pkgdesc="A System Profiler for Linux"
url="http://oprofile.sourceforge.net/"
arch="x86 x86_64"
license="GPL"
depends=""
makedepends="libiconv-dev popt-dev gettext-dev"
install=
subpackages="$pkgname-doc"
source="http://prdownloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
	oprofile-pic.patch"

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
	if [ "$CARCH" != "x86_64" ]; then
		patch -p1 -i "$srcdir"/oprofile-pic.patch
	fi
}
                                                        
build() {
	cd "$srcdir/$pkgname-$pkgver"

	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--with-kernel-support \
		--with-pic
	make -j1 || return 1
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make -j1 DESTDIR="$pkgdir" install

	#install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/knockd
	#install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/knockd
}

md5sums="4e407093ac06200185d5a5e6437d7242  oprofile-0.9.6.tar.gz
e7b80603bc86f120480c3d411d532ab8  oprofile-pic.patch"