aboutsummaryrefslogtreecommitdiffstats
path: root/community/multitail/APKBUILD
blob: 3bde4b11c52f54cd75458edbf5b2b60d831b7e0c (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=multitail
pkgver=6.5.0
pkgrel=0
pkgdesc="MultiTail lets you view one or multiple files like the original tail program"
arch="all"
url="http://www.vanheusden.com/multitail"
license="GPL-2.0"
depends="ncurses coreutils"
makedepends="ncurses-dev"
subpackages="$pkgname-doc"
source="http://www.vanheusden.com/multitail/multitail-$pkgver.tgz
	linux-is-not-debian-ncurses.patch
	"

build() {
	make -C "$builddir"
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install

	mkdir -p "$pkgdir"/etc

	mv "$pkgdir"/usr/share/doc/$pkgname-$pkgver \
		"$pkgdir"/usr/share/doc/$pkgname
	mv "$pkgdir"/usr/etc/multitail \
		"$pkgdir"/usr/share/doc/$pkgname/examples
	mv "$pkgdir"/usr/etc/$pkgname.conf.new "$pkgdir"/etc/$pkgname.conf

	rmdir "$pkgdir"/usr/etc
}

sha512sums="de6dfc8f9278752a77ded4b317952dbada2b05927ce7afcbe063a6e8f5a628e31e719ce4badc7a600f75cabe4f40d811e51ff6cddf25f1c90d1180b1b0e0057c  multitail-6.5.0.tgz
8f9a02b37187af204a1b00646e9657ead1c70bb1f3ee9dda922186b24060f5e9bd9d7d3cfe7f29ccbc242ff69a515e010b11d51c41112ca77acd910e2de2e9db  linux-is-not-debian-ncurses.patch"