# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=pspg pkgver=2.1.8 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-musl.patch " 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="1d7e17bc9bb25192396b11dfd78abb0cd9a10123029e4408efb47219f996d823de802db75c9efbf0d4cef1921f75f3e3948ecc93065b97440286c4b6b5ac84fe pspg-2.1.8.tar.gz b1538580f0ba1d24f3b66cad611c0ddcc9d5b74e6f7e5a46a74b1271db957b7094d64b0eefbdea51a6e7c9297a5d914ef7e6e759d24da724bc1276bdf1614940 fix-musl.patch"