# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
# Maintainer: 7heo <7heo@mail.com>
pkgname=dvtm
pkgver=0.15
pkgrel=1
pkgdesc="Dynamic virtual terminal manager"
arch="all"
url="http://www.brain-dump.org/projects/dvtm/"
license="MIT"
depends="ncurses-terminfo"
makedepends="ncurses-dev ncurses" # we need ncurses for 'tic'
subpackages="$pkgname-doc"
source="http://www.brain-dump.org/projects/${pkgname}/${pkgname}-${pkgver}.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd $builddir
	make
}

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

	# Already provided by ncurses-terminfo
	rm -rf "${pkgdir}/usr/share/terminfo/"
}

sha512sums="48a0c8fd6a50fe5d43414d0223c9f4b9920a31d42fe3bfc428ce1ae7d0e41a41ebe2597eae0824c7c76bfb0e32a13e440c8d5fcdb1886d55d6791fa3fe3fd77b  dvtm-0.15.tar.gz"
