# Contributor: Sergiy Stupar <owner@sestolab.pp.ua>
# Maintainer: Sergiy Stupar <owner@sestolab.pp.ua>
pkgname=mtm
pkgver=1.2.1
pkgrel=0
pkgdesc="Perhaps the smallest useful terminal multiplexer in the world"
url="https://github.com/deadpixi/mtm"
arch="all"
license="GPL-3.0-or-later"
options="!check" # No tests
depends="ncurses-terminfo"
makedepends="ncurses-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/deadpixi/mtm/archive/$pkgver.tar.gz"

build() {
	make HEADERS='-DNCURSESW_INCLUDE_H="<ncurses.h>"'
}

package() {
	install -Dm755 $pkgname -t "$pkgdir"/usr/bin
	install -Dm644 $pkgname.1 -t "$pkgdir"/usr/share/man/man1
}

sha512sums="
74e5230c6ea65c87d580516b7b62edeb4f273c1a36662bac84af41ca47e4ce252e393132dfe8c700441d6b74c19d6d560fbc503815c12f9d1cbdda2e19a9a9e2  mtm-1.2.1.tar.gz
"
