~alpine/aports

testing/presto: new aport v1 REJECTED

suiwenfeng: 1
 testing/presto: new aport

 2 files changed, 33 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/aports/patches/3289/mbox | git am -3
Learn more about email & git

[PATCH] testing/presto: new aport Export this patch

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 <suiwenfeng@gmail.com>
# Maintainer: suiwenfeng <suiwenfeng@gmail.com>
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
Milan P. Stanić <mps@arvanta.net>
Hello suiwenfeng,

This looks like binary package and not source. As such it is not
acceptable for inclusion in Alpine Linux.

-- 
regards

On Fri, 2020-02-28 at 10:51, suiwenfeng wrote: