aboutsummaryrefslogtreecommitdiffstats
path: root/main/pspg/APKBUILD
blob: 5fbac8bb9e91a44eba236931cb224aecb424754b (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
36
37
38
39
40
41
42
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
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
81bd427880f57b92ff5ae9a781c9ccc3e30f1c6bb75f5367857706211f7619ed2a50c895908a4eb998b2c8fa62058079afc38d21a15e087093e8cccb21b347d8  fix-ax_with_curses_extra.patch"