blob: 907b5ae9bc50397c9a58d5f5e30a24520844a0fa (
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
38
39
40
41
|
# Maintainer: tarball <bootctl@gmail.com>
# Contributor: Kyle Keen <keenerd@gmail.com>
# Contributor: Kevin Piche <kevin@archlinux.org>
# Contributor: Roberto Carvajal <roberto@archlinux.org>
pkgname=multitail
pkgver=7.1.5
pkgrel=1
pkgdesc='View one or multiple files like the original tail program'
arch=('x86_64')
license=('MIT')
url="https://www.vanheusden.com/multitail"
depends=('glibc' 'bash' 'ncurses' 'perl')
makedepends=('cmake')
backup=('etc/multitail.conf')
source=(https://github.com/folkertvanheusden/multitail/archive/$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('b0c92bf5f504b39591bf3e2e30a1902925c11556e14b89a07cfa7533f9bd171b')
prepare() {
cd $pkgname-$pkgver
sed -i 's|ncursesw/panel.h|panel.h|' mt.h
sed -i 's|ncursesw/ncurses.h|ncurses.h|' mt.h
}
build() {
cmake -B build -S $pkgname-$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
mv "$pkgdir"/{usr/,}etc
mv "$pkgdir"/etc/multitail.conf{.new,}
mv "$pkgdir"/usr/share/doc/multitail{-$pkgver,}
cd $pkgname-$pkgver
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/multitail/
}
# vim: ts=2 sw=2 et ft=sh
|