From 3e09dde9a1931cfeade17925fd97e1367949fec8 Mon Sep 17 00:00:00 2001
From: Bart Ribbers <bribbers@disroot.org>
Date: Thu, 10 Feb 2022 07:25:01 +0100
Subject: [PATCH] main/p7zip: modernize

---
 main/p7zip/APKBUILD | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/main/p7zip/APKBUILD b/main/p7zip/APKBUILD
index a25341717135..b8de20a47dcc 100644
--- a/main/p7zip/APKBUILD
+++ b/main/p7zip/APKBUILD
@@ -3,15 +3,19 @@
 # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
 pkgname=p7zip
 pkgver=17.04
-pkgrel=1
-pkgdesc="command-line port of the 7zip compression utility"
+pkgrel=2
+pkgdesc="Command-line port of the 7zip compression utility"
 url="https://github.com/jinfeihan57/p7zip"
 # armhf: ftbfs, sigbus
 arch="all !armhf"
 license="LGPL-2.0-or-later"
 subpackages="$pkgname-doc"
-makedepends="bash yasm nasm"
-source="$pkgname-$pkgver.tar.gz::https://github.com/jinfeihan57/p7zip/archive/refs/tags/v17.04.tar.gz"
+makedepends="
+	bash
+	nasm
+	yasm
+	"
+source="https://github.com/jinfeihan57/p7zip/archive/v$pkgver/p7zip-v$pkgver.tar.gz"
 
 case "$CARCH" in
 	s390x) options="$options !check";; # dealocks on s390x
@@ -61,5 +65,5 @@ package() {
 }
 
 sha512sums="
-ad176db5b657b1c39584f6792c47978d94f2f1ccb1cf5bdb0f52ab31a7356b3822f4a922152c4253f4aa7e79166ba052b6592530b7a38f548cd555fe9c008be3  p7zip-17.04.tar.gz
+ad176db5b657b1c39584f6792c47978d94f2f1ccb1cf5bdb0f52ab31a7356b3822f4a922152c4253f4aa7e79166ba052b6592530b7a38f548cd555fe9c008be3  p7zip-v17.04.tar.gz
 "
-- 
GitLab