blob: a633ba570213de7a2c640ecc355b35cbeb36fb84 (
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
42
43
44
45
46
|
# Contributor: Sean Haugh <seanphaugh@gmail.com>
# Contributor: Frank Lenormand <lenormf@gmail.com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
_pkgname=dvtm
_owner=wurosh
pkgname=dvtm-git
pkgver=0.15.67.g1cee8c3
pkgrel=1
pkgdesc='Dynamic virtual terminal manager'
arch=('i686' 'x86_64')
url="https://github.com/$_owner/$_pkgname"
license=('MIT')
depends=('sh')
makedepends=('git')
provides=("$_pkgname=$pkgver-$pkgrel")
conflicts=('dvtm')
source=("git+https://github.com/$_owner/$_pkgname")
md5sums=('SKIP')
pkgver() {
cd "$_pkgname"
git describe --long | sed 's/^v//; s/-/./g'
}
prepare() {
cd "$_pkgname"
[[ -e "$srcdir/config.h" ]] && cp "$srcdir/config.h" .
sed -i"" 's/CFLAGS =/CFLAGS +=/' config.mk
}
build() {
cd "$_pkgname"
make
}
package() {
cd "$_pkgname"
make PREFIX=/usr DESTDIR="$pkgdir" install
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
msg "Removing /usr/share/terminfo for compatibility with ncurses..."
rm -rv "$pkgdir/usr/share/terminfo"
}
# vim: set ts=2 sw=2 noet:
|