aboutsummaryrefslogtreecommitdiffstats
path: root/main/procps/APKBUILD
blob: 4df2d72194f5c038801059f2c806a1f5b62c0b15 (plain) (blame)
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
# 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/"
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"

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"