# Contributor: Michael Mason # Maintainer: Natanael Copa pkgname=dialog pkgver=1.3.20191210 _pkgver=${pkgver%.*}-${pkgver##*.} pkgrel=0 pkgdesc="Script interpreter providing curses widgets" url="https://invisible-island.net/dialog/dialog.html" arch="all" options="!check" # No test suite. license="LGPL-2.1-only" makedepends="ncurses-dev" subpackages="$pkgname-doc $pkgname-static" source="https://invisible-mirror.net/archives/dialog/dialog-$_pkgver.tgz" builddir="$srcdir/$pkgname-$_pkgver" build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-ncursesw make } package() { cd "$builddir" make DESTDIR="$pkgdir" install } static() { pkgdesc="$pkgdesc (static library)" depends="" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib } sha512sums="4196287f26da2aab8376141a1442bccea52bcc6f7003042101df0c6a72aa3e25aa909d9fbcb937b047ab12a2e4349ec4b71b26f6e5cd4ba41cfd5665f732975d dialog-1.3-20191210.tgz"