# Contributor: Sören Tempel # Maintainer: pkgname=picocom pkgver=2.1 pkgrel=0 pkgdesc="Minimal dumb-terminal emulation program" url="https://github.com/npat-efault/picocom" arch="all" license="GPL2" depends="" makedepends="" install="" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/npat-efault/${pkgname}/archive/${pkgver}.tar.gz" builddir="$srcdir"/$pkgname-$pkgver build() { make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \ -C "$builddir" || return 1 } package() { install -Dm755 "$builddir"/$pkgname \ "$pkgdir"/usr/bin/$pkgname || return 1 install -Dm644 "$builddir"/$pkgname.1 \ "$pkgdir"/usr/share/man/man1/$pkgname.1 || return 1 local file= for file in CONTRIBUTORS README.md TODO; do install -Dm644 "$builddir"/$file \ "$pkgdir"/usr/share/doc/$pkgname/$file || return 1 done } md5sums="7cae1424c1279f0f13dee5dcb3de3f45 picocom-2.1.tar.gz" sha256sums="6b152fc5f816eaef6b86336a4cec7cf1496b7c712061e5aea5a36f143a0b09ed picocom-2.1.tar.gz" sha512sums="0df692118e3cfa27edd8ff9d5abbde8a9dc02fb015476ab1469337d616eb69411db125a967107276fb50bc58e7b9748429b9ded4943712a082a10827d595c03e picocom-2.1.tar.gz"