~alpine/aports

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] testing/presto: new aport

Details
Message ID
<20200228105112.8193-1-suiwenfeng@gmail.com>
DKIM signature
missing
Download raw message
Patch: +33 -0
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>
Details
Message ID
<20200228110356.GA26678@arya.arvanta.net>
In-Reply-To
<20200228105112.8193-1-suiwenfeng@gmail.com> (view parent)
DKIM signature
missing
Download raw message
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:
> 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
Reply to thread Export thread (mbox)