# Contributor: Sergiy Stupar <owner@sestolab.pp.ua>
# Maintainer: Sergiy Stupar <owner@sestolab.pp.ua>
pkgname=mtm
pkgver=1.2.1
pkgrel=1
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
	gcc14-32-bit.patch
	"

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
da5d2c226f43bda1155a3e9c0d518fc1aef8d4aee57bdd044ca651766eb61d7f2d34f18ecd7f906fd338b4ab32defea76e20ed5648b22b7da5226c9022770a60  gcc14-32-bit.patch
"
