Subject: [PATCH] testing/presto: new aport

From: suiwenfeng <[email-masked]>
Date: Fri, 28 Feb 2020 10:51:12 +0000

https://prestodb.io/docs/current/installation/cli.html
Presto CLI
---
 testing/presto/APKBUILD            | 28 ++++++++++++++++++++++++++++
 testing/presto/presto.post-install |  5 +++++
 2 files changed, 33 insertions(+)
 create mode 100644 testing/presto/APKBUILD
 create mode 100644 testing/presto/presto.post-install

diff --git a/testing/presto/APKBUILD b/testing/presto/APKBUILD
new file mode 100644
index 0000000000..f0fae5407d
--- /dev/null
+++ b/testing/presto/APKBUILD
@@ -0,0 +1,28 @@
+# Contributor: suiwenfeng <[email-masked]>
+# Maintainer: suiwenfeng <[email-masked]>
+pkgname="presto"
+pkgver="0.232"
+pkgrel=0
+pkgdesc="Presto CLI"
+url="https://prestodb.io/docs/current/installation/cli.html"
+arch="all"
+license="MIT"
+depends="openjdk8-jre"
+install="$pkgname.post-install"
+builddir="$srcdir/"
+
+build() {
+	echo "building success"
+}
+
+check() {
+	echo "checking success"
+}
+
+package() {
+	wget "https://repo1.maven.org/maven2/com/facebook/presto/presto-cli/$pkgver/presto-cli-$pkgver-executable.jar"
+	mkdir -p "$pkgdir/usr/bin"
+	mv "$srcdir/presto-cli-$pkgver-executable.jar" "$pkgdir/usr/bin/presto"
+	sudo chmod +x "$pkgdir/usr/bin/presto"
+}
+
diff --git a/testing/presto/presto.post-install b/testing/presto/presto.post-install
new file mode 100644
index 0000000000..e9d798569d
--- /dev/null
+++ b/testing/presto/presto.post-install
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+echo -e "please \e[1;31mexport PRESTO_PAGER=more\e[0m before using it"
+
+exit 0
-- 
2.24.1