# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=pspg pkgver=1.6.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="337ae1eb9e92dc97ca32127322aaa3d0c5edb8766e5cab16e778148b3256119c7c5b1b2e4b6ab0b520113ede07c464d1c1c5e460c8efb7714f5a29acfa845e9d pspg-1.6.8.tar.gz 5756abc912e3fd8a3bfabdb5bb7e6dd2eb2480d2cfc1f2e69961e3209059339c1a3ea50216df6c724e22da033455abb94452f2502be48e089679a87ef5242619 fix-musl.patch"