aboutsummaryrefslogtreecommitdiffstats
path: root/main/pspg/APKBUILD
blob: 21cad2db1eb0e1856b6f500401827b2ecf341245 (plain)
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.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"