Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 11250781A75 for ; Fri, 28 Feb 2020 10:51:23 +0000 (UTC) Received: by mail-pg1-f175.google.com with SMTP id t24so1316214pgj.7 for ; Fri, 28 Feb 2020 02:51:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Pe6/YUh+w/hRzXC4DvEucrS3yhLs9SoZQQwu6ZQ2FJE=; b=qAXkyfrUL2nHzGDPrOPbdzebCPeifaoVUn9Ud0y709ypXZ1qIfYNBlFCBg4h24VoD/ r/YHAl0K2YulUzXE4wsoAfa6wcTz0UEHtRQ/8D3tjUwu2/koWo8bCnfBlFM1fs5zZxEW LqzUx38rt+vGTGrczAJmIfmnEo21ZmJxPNoMcs7mS3i13v3a/JDH96n2HtfvCSFC26dp NM7cbrJEYF+zMO2YuaYP/8projudgGqntRIf7NfPT5DliB7W0cfIizvAhJkvsBvqxKmM IBF5DupI3hJQGN+D3pB78zayR9pSIJeMQn7K2gwPnxH4GKzAsrrDP/QeelHaasvW7euX uoWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Pe6/YUh+w/hRzXC4DvEucrS3yhLs9SoZQQwu6ZQ2FJE=; b=XGXB9ykSeb0Kt4UsMEeYssoGsmXvnfP4/4af9DWVmcR/Hc0KXQPjfruXDa6FG2aoKP nWuqb+TaqF7iDFtvM6rZ1tUu+a0sU2L37Pc3TuMxMbDJAjd+OFUNpGkg5drhoH0LA+7t boXiaotMpBnaRiuVMycQJ53q8zXLYuO4fA2TPYkgsb3ZUtS1rbgm6mBjutQT0HdoxXCI A8InfhNMQrn6qSX96E7ETbSBKw49cNT04HbYZSHu+dyFb9s2NxHm3HzjnPiFsYfSguW7 N2hBOqM4qqcM/skItZn7SY/6rr/w+xA95hNNsZeUtAHSan0Gz+43twSmAS2O7dimxDHK E2RA== X-Gm-Message-State: APjAAAUudatYNXRoPIy6Lptfm2FI+wcO6O7CVbUKkSEpQEq3qTOsueNY XOol0QWdw8S1101aeyLr3hBQQQjGUHVzMw== X-Google-Smtp-Source: APXvYqwZM0sChJLJcea7Ft8BT2YkCCky76gDtUIbfAvop6GXAXCdwfnyfWrl2qzZiohD6VOvnhs6/Q== X-Received: by 2002:a63:e80d:: with SMTP id s13mr4013593pgh.236.1582887081634; Fri, 28 Feb 2020 02:51:21 -0800 (PST) Received: from 482c5d678a35.Shein-inc.com ([118.184.5.17]) by smtp.gmail.com with ESMTPSA id d69sm11686093pfd.72.2020.02.28.02.51.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Feb 2020 02:51:21 -0800 (PST) From: suiwenfeng To: alpine-aports@lists.alpinelinux.org Cc: suiwenfeng Subject: [PATCH] testing/presto: new aport Date: Fri, 28 Feb 2020 10:51:12 +0000 Message-Id: <20200228105112.8193-1-suiwenfeng@gmail.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 +# Maintainer: suiwenfeng +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