aboutsummaryrefslogtreecommitdiffstats
path: root/main/pspg/APKBUILD
blob: f20162c7e268a4ed0492aee6b38e904ede50a2b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=pspg
pkgver=5.5.3
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"
source="https://github.com/okbob/pspg/archive/$pkgver/$pkgname-$pkgver.tar.gz"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
e8acd74093512694241b5bb6b51b93a761a5f05fe519e97df43c52f142512f96082c30c396b2dcd7eac567b2db1ea9fecf69bab4ea77b4056d31f8d30100d38c  pspg-5.5.3.tar.gz
"