summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/procps/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/main/procps/APKBUILD b/main/procps/APKBUILD
new file mode 100644
index 000000000..83204ad1b
--- /dev/null
+++ b/main/procps/APKBUILD
@@ -0,0 +1,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"