From 8e3b76248c08860d6a7daa6528c471e60e707caa Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Wed, 13 May 2020 11:52:33 +0000
Subject: [PATCH] Revert "community/uacme: revert to previous tarball source
 url"

From Nicloa Di Leito, the author of uacme:

> you are packaging from the master branch. I don't recommend that.
> Please use https://github.com/ndilieto/uacme/archive/upstream/1.3.tar.gz
>
> See also
> https://github.com/buildroot/buildroot/blob/master/package/uacme/uacme.mk

The above uacme.mk has a comment saying:
> # Released versions are on branch upstream/latest, tagged as
> # upstream/X.Y.Z Do not use vX.Y.Z tags from master, as they do not
> # include .tarball-version

So we use the upstream/X.Y.Z tag, even if its unclear what the
.tarball-version is for.

also add -upstream in the downloaded source package filename to work
around checksum errors with cached uacme-1.3.tar.gz files.

This reverts commit a7fda426d01b44c5f301483b38318ac3ad332e32.
---
 community/uacme/APKBUILD | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/community/uacme/APKBUILD b/community/uacme/APKBUILD
index e6dfe5ae8514..f8f2800eb998 100644
--- a/community/uacme/APKBUILD
+++ b/community/uacme/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Eivind Uggedal <eu@eju.no>
 pkgname=uacme
 pkgver=1.3
-pkgrel=1
+pkgrel=2
 pkgdesc="Lightweight client for the RFC8555 ACMEv2 protocol"
 url="https://github.com/ndilieto/uacme"
 arch="all"
@@ -10,7 +10,7 @@ license="GPL-3.0-or-later ISC MIT"
 makedepends="openssl-dev curl-dev asciidoc"
 subpackages="$pkgname-doc"
 options="!check"  # no test suite
-source="uacme-$pkgver.tar.gz::https://github.com/ndilieto/uacme/archive/v$pkgver.tar.gz"
+source="uacme-upstream-$pkgver.tar.gz::https://github.com/ndilieto/uacme/archive/upstream/$pkgver.tar.gz"
 builddir="$srcdir/uacme-upstream-$pkgver"
 
 build() {
@@ -32,4 +32,4 @@ package() {
 	install -d "$pkgdir"/var/www/.well-known/acme-challenge
 }
 
-sha512sums="0abc89bec514fc6c816b331851e4df49fde16d8d6b04f14320921cfeae6e6a7b81a0654a4213edbf0329a0f6264b209269df7cb9daf1f222c6cf935b6d1ce1e2  uacme-1.3.tar.gz"
+sha512sums="a8e78f28a906fe511c2c61db47773cf73245d50e354a42f95931954f33d071a4a89262c1ed7da7cd1c8ed33ba66297585950ed73cb7cd6dba860e4280a7d964d  uacme-upstream-1.3.tar.gz"
-- 
GitLab