Subject: [alpine-aports] [PATCH] testing/acme.sh: new aport

From: Milan P. Stanić <[email-masked]>
Date: Mon, 7 Jan 2019 12:17:11 +0100

---
 testing/acme.sh/APKBUILD | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 testing/acme.sh/APKBUILD

diff --git a/testing/acme.sh/APKBUILD b/testing/acme.sh/APKBUILD
new file mode 100644
index 0000000000..9b61b83be2
--- /dev/null
+++ b/testing/acme.sh/APKBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Milan P. Stanić <[email-masked]>
+# Contributor: Milan P. Stanić <[email-masked]>
+
+pkgname=acme.sh
+pkgver=2.7.9
+pkgrel=0
+pkgdesc='An ACME Shell script, an acme client alternative to certbot'
+arch="noarch"
+url="https://github.com/Neilpang/acme.sh"
+license="GPL3"
+depends="socat"
+options="!check"
+source="$pkgname-$pkgver.tar.gz::https://github.com/Neilpang/acme.sh/archive/$pkgver.tar.gz"
+
+package() {
+  cd $builddir
+	rm -rf .github .travis.yml Dockerfile
+  install -dm755 "$pkgdir"/usr/share/acme.sh/deploy
+  install -dm755 "$pkgdir"/usr/share/acme.sh/dnsapi
+  install -dm755 "$pkgdir"/usr/bin
+
+  install -m755 acme.sh "$pkgdir"/usr/share/acme.sh/
+  install -m755 deploy/*.sh "$pkgdir"/usr/share/acme.sh/deploy/
+  install -m755 dnsapi/*.sh "$pkgdir"/usr/share/acme.sh/dnsapi/
+
+  ln -s /usr/share/acme.sh/acme.sh "$pkgdir"/usr/bin/acme.sh
+}
+sha512sums="24374783ca52835b400b84316ffab5e9066805362f02082f8ef409e21ca590d837b3dd11401633947f9fcc98dc977b0e8b6076d5deecd02b38478f257500a052  acme.sh-2.7.9.tar.gz"
-- 
2.18.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---

---

From: Leonardo Arena <[email-masked]>
Date: Tue, 8 Jan 2019 15:22:49 +0100

Hi,

thank you for your contribution. Please see some comments below.

> +++ b/testing/acme.sh/APKBUILD

For the license ID please use one from https://spdx.org/licenses/

> +depends="socat"
> +options="!check"
> +source="$pkgname-$pkgver.tar.gz::
> https://github.com/Neilpang/acme.sh/archive/$pkgver.tar.gz"
> +
> +package() {
> +  cd $builddir

Would you please fix the indentation?

Thanks!

/eo

---

From: "Milan P. Stanic" <[email-masked]>
Date: Tue, 8 Jan 2019 18:27:38 +0100

Hi Leonardo,

> thank you for your contribution. Please see some comments below.

Of course, I can change but Francesco Colista already added it to the
aports, so my post to patchwork is superseded actually.

-- 
Regards

---