makedeb
Dynamic virtual terminal manager
Viewing /PKGBUILD
.
Click here to go back to the Git tree for dvtm-git.
# Contributor: Sean Haugh <seanphaugh@gmail.com>
# Contributor: Frank Lenormand <lenormf@gmail.com>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Maintainer: Alistair Bahr <alistair1231@gmail.com>
_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: