# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=pspg pkgver=1.2.1 pkgrel=0 pkgdesc="A unix pager optimized for psql" url="https://github.com/okbob/pspg" arch="all" license="BSD-2-Clause" makedepends="automake autoconf ncurses-dev readline-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/okbob/$pkgname/archive/$pkgver.tar.gz fix-ax_with_curses_extra.patch" builddir="$srcdir/$pkgname-$pkgver" prepare() { default_prepare ./autogen.sh } build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var make } check() { cd "$builddir" ./pspg -V } package() { cd "$builddir" make DESTDIR="$pkgdir" install } sha512sums="48de3416066c1098340057e2137c6ea05d9d3725550ef28bcadd9d74c323f5cc87e1bd39e84f3a66614d05f9656cb1206ca4b2146e506530906440d958788fc5 pspg-1.2.1.tar.gz a7b9620d88077b02e80097afba6c22ec789ec54bcfc5834167ac5ba57861c9b00027748896d2740d03525c5b5ceb8ed68e28deab48d818c8deaf988bd736bf4c fix-ax_with_curses_extra.patch"