summaryrefslogtreecommitdiffstats
path: root/main/procps/APKBUILD
blob: 83204ad1b3f4780e6c59c29d3b6cb48e2b3a86d1 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=procps
pkgver=3.2.8
pkgrel=0
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 || 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"