aboutsummaryrefslogtreecommitdiffstats
path: root/main/procps/APKBUILD
blob: d8bc89d63cfff8d52cd7eae289beb1010e063a71 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=procps
pkgver=3.2.8
pkgrel=1
pkgdesc="Utilities for monitoring your system and processes on your system"
url="http://procps.sourceforge.net/"
arch="x86 x86_64"
license="GPL LGPL"
depends=
# needs fancy install
makedepends="ncurses-dev coreutils"
subpackages="$pkgname-dev $pkgname-doc libproc"
source="http://$pkgname.sourceforge.net/$pkgname-$pkgver.tar.gz
	01-fix-install-options-for-busybox.patch"

prepare() {
	cd "$srcdir"
	patch -p1 -i "$srcdir"/01-fix-install-options-for-busybox.patch || return 1
}

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

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" ldconfig=true install="/bin/install -D" \
		install || return 1
	install -d "$pkgdir"/usr/include/proc || return 1
	install -m644 proc/*.h "$pkgdir"/usr/include/proc/ || return 1
}

libproc() {
	pkgdesc="Library for monitoring system and processes"
	install -d "$subpkgdir"/lib
	mv "$pkgdir"/lib/libproc* "$subpkgdir"/lib/
	ln -s libproc-$pkgver.so "$subpkgdir"/lib/libproc.so
}

md5sums="9532714b6846013ca9898984ba4cd7e0  procps-3.2.8.tar.gz
2b821e841acd08620789d5ffd19d58e9  01-fix-install-options-for-busybox.patch"