aboutsummaryrefslogtreecommitdiffstats
path: root/main/pstree/APKBUILD
blob: 2a414bcda491f39bce4aa630005a4edbe4101fe0 (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=pstree
pkgver=2.39
pkgrel=0
pkgdesc="A small tool to list processes as a tree"
url="http://www.thp.uni-duisburg.de/pstree/"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends=""
install=""
subpackages="$pkgname-doc"
source="ftp://ftp.thp.uni-duisburg.de/pub/source/$pkgname-$pkgver.tar.gz"

build() {
	${CC:-gcc} ${CFLAGS} -o "$srcdir"/$pkgname \
		"$srcdir"/$pkgname.c || return 1
}

package() {
	install -Dm755 "$srcdir"/$pkgname \
		"$pkgdir"/usr/bin/$pkgname || return 1
	install -Dm644 "$srcdir"/$pkgname.1 \
		"$pkgdir"/usr/share/man/man1/$pkgname.1 || return 1
}

sha512sums="31ec81b4adb563068a3006312e1e42b026d41107c7756c54f8b38d143b32426fc702602c7eb925a55c62be5cb3ef7d562e6ba032ec7a0788d0c45f5d5b5b0662  pstree-2.39.tar.gz"