summaryrefslogtreecommitdiffstats
path: root/main/oprofile/APKBUILD
blob: c0dc424dc96aeaccb9caf6472a211ecbc99493b0 (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
# Contributor: Timo Teras <timo.teras@iki.fi>
# Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=oprofile
pkgver=0.9.8
pkgrel=1
pkgdesc="A System Profiler for Linux"
url="http://oprofile.sourceforge.net/"
arch="all"
license="GPL"
depends=""
makedepends="libiconv-dev popt-dev gettext-dev"
install=
subpackages="$pkgname-doc"
options="libtool"
source="http://prdownloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"

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

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}
                                                        
build() {
	cd "$srcdir/$pkgname-$pkgver"

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--with-pic \
		|| return 1
	make -j1 || return 1
}

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

md5sums="6d127023af1dd1cf24e15411229f3cc8  oprofile-0.9.8.tar.gz"