aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pspg/APKBUILD
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-10-06 11:50:06 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-10-06 11:50:33 +0200
commit15f9eb0e442a74b23ed1ecec1799a646c6646c11 (patch)
treee2963e2026343f0910392ccee4ee8b3cf61b76a2 /testing/pspg/APKBUILD
parentf543efee1dbda0127f8343a6ca40e49f2e9fbfc2 (diff)
downloadaports-15f9eb0e442a74b23ed1ecec1799a646c6646c11.tar.gz
aports-15f9eb0e442a74b23ed1ecec1799a646c6646c11.tar.bz2
aports-15f9eb0e442a74b23ed1ecec1799a646c6646c11.tar.xz
testing/pspg: new aport
https://github.com/okbob/pspg A unix pager optimized for psql
Diffstat (limited to 'testing/pspg/APKBUILD')
-rw-r--r--testing/pspg/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/pspg/APKBUILD b/testing/pspg/APKBUILD
new file mode 100644
index 0000000000..fa2c5917c8
--- /dev/null
+++ b/testing/pspg/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
+pkgname=pspg
+pkgver=0.3
+pkgrel=0
+pkgdesc="A unix pager optimized for psql"
+url="https://github.com/okbob/pspg"
+arch="all"
+license="BSD-2-Clause"
+makedepends="ncurses-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/okbob/$pkgname/archive/v$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
+
+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="36719967bf9a74788d0f383ce38d9dde0d02e1f57b38d9957a93abfff5f4050531427db2a1de5ad8717a926ec37bd572ed2e2ad7155f6f77e61d57df935f5ec9 pspg-0.3.tar.gz"