# Contributor: Sean Haugh # Contributor: Frank Lenormand # Contributor: Stefan Husmann # Maintainer: Alistair Bahr _pkgname=dvtm _owner='~kaction' pkgname=dvtm-git pkgver=0.15.3.0.g4e3abbe pkgrel=1 pkgdesc='Dynamic virtual terminal manager' arch=('i686' 'amd64') url="https://git.sr.ht/$_owner/$_pkgname" license=('MIT') depends=('libncurses-dev') makedepends=('git') provides=("$_pkgname=$pkgver-$pkgrel") conflicts=('dvtm') source=("git+https://git.sr.ht/$_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: