# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Dan Theisen <djt@hxx.in>
pkgname=minicom
pkgver=2.8
pkgrel=0
pkgdesc="Menu-driven communications program for terminals"
url="https://fossies.org/linux/minicom/"
arch="all"
license="GPL-2.0+"
depends=""
makedepends="ncurses-dev gettext-tiny-dev linux-headers"
subpackages="$pkgname-doc $pkgname-lang"
source="https://fossies.org/linux/misc/$pkgname-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="535e0df37d8679ff08959b14f1f494a4d632af5a481e49873dd33a6c601de3ce20193ee6314d6c3282775f5adb906521a237bf8ac4b32e2751c754a91d99853f  minicom-2.8.tar.bz2"