summaryrefslogtreecommitdiffstats
path: root/main/oprofile/APKBUILD
blob: f3fa34c059bc90f238f14e20d91a7e89a8976d5f (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
# Contributor: Timo Teras <timo.teras@iki.fi>
# Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=oprofile
pkgver=0.9.9
pkgrel=0
pkgdesc="A System Profiler for Linux"
url="http://oprofile.sourceforge.net/"
arch=""
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
	op-AT_BASE_PLATFORM.patch"

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

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

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="00aec1287da2dfffda17a9b1c0a01868  oprofile-0.9.9.tar.gz
fc86dc788151ff8d0348a0c2fd9bddb4  op-AT_BASE_PLATFORM.patch"
sha256sums="1e523400daaba7b8d0d15269e977a08b40edfea53970774b69ae130e25117597  oprofile-0.9.9.tar.gz
f96d25ee22040085ad5b5026ff5116f83154fed345ce07c5293012112fbd5ec0  op-AT_BASE_PLATFORM.patch"
sha512sums="98cc3d2c15744d02ed649833cf4797482aec73bd52653e916f80b490e17a8250d988c4c945e52dd8999a0d0603fec405e99c9570dfc54baa4992950fe4d8763f  oprofile-0.9.9.tar.gz
3f9ef8330cfea7f0f3f4d0cf824398ef42eee187e50a6d9458307954d2cebbe60573c7879d63fa6a6b9d6c76152f7fc95ba5b1bcac1a21a5ce07f2af1c861b6f  op-AT_BASE_PLATFORM.patch"