mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-21 05:26:40 +02:00
39 lines
941 B
Text
39 lines
941 B
Text
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=pspg
|
|
pkgver=5.8.7
|
|
pkgrel=0
|
|
pkgdesc="A unix pager optimized for psql"
|
|
url="https://github.com/okbob/pspg"
|
|
arch="all"
|
|
options="!check" # there is no tests
|
|
license="BSD-2-Clause"
|
|
makedepends="automake autoconf libpq-dev ncurses-dev readline-dev"
|
|
subpackages="$pkgname-doc"
|
|
source="https://github.com/okbob/pspg/archive/$pkgver/pspg-$pkgver.tar.gz"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
./autogen.sh
|
|
}
|
|
|
|
build() {
|
|
# getpass
|
|
CFLAGS="$CFLAGS -D_BSD_SOURCE" \
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var
|
|
make
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
install -Dm644 pspg.1 -t "$pkgdir"/usr/share/man/man1/
|
|
}
|
|
|
|
sha512sums="
|
|
fefdd178663b4ed44484e5092667c435cfcb8c059c0687f8e51121948f414ab862cc23808432d2f5b4b516a2c8f1d22ceecb2eba872a8acdd5c6a9d45f456cd6 pspg-5.8.7.tar.gz
|
|
"
|