git: 70a8e1e3ff48 - main - devel/allegro5: Use upstream release archive and some minor fixes

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Sun, 12 Jun 2022 21:21:59 UTC
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=70a8e1e3ff48c13c66825148526e4728432905a5

commit 70a8e1e3ff48c13c66825148526e4728432905a5
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2022-06-12 21:05:40 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2022-06-12 21:05:47 +0000

    devel/allegro5: Use upstream release archive and some minor fixes
    
    Use upstream release archive as suggested by Porters Handbook
    Use DISTVERSION everywhere in Makefile for consistency
    
    PR:             264020
    Approved by:    Karsten Pedersen <kpedersen@disroot.org> (maintainer timeout, 3+ weeks)
---
 devel/allegro5/Makefile | 6 ++----
 devel/allegro5/distinfo | 6 +++---
 2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/devel/allegro5/Makefile b/devel/allegro5/Makefile
index 75e0ec729383..897cbeb818db 100644
--- a/devel/allegro5/Makefile
+++ b/devel/allegro5/Makefile
@@ -4,6 +4,7 @@ PORTNAME=	allegro
 DISTVERSION=	5.2.7.0
 PORTREVISION=	2
 CATEGORIES=	devel games
+MASTER_SITES=	https://github.com/liballeg/${PORTNAME}${PKGNAMESUFFIX}/releases/download/${DISTVERSION}/
 PKGNAMESUFFIX=	5
 
 MAINTAINER=	kpedersen@disroot.org
@@ -25,9 +26,6 @@ LIB_DEPENDS=	libFLAC.so:audio/flac \
 
 USES=		cmake:insource compiler:c++11-lang gl gnome jpeg \
 		openal:soft pkgconfig xorg uniquefiles:dirs
-USE_GITHUB=	yes
-GH_ACCOUNT=	liballeg
-GH_PROJECT=	allegro5
 USE_XORG=	x11 xpm xext xcursor xxf86vm xxf86dga sm ice xi xinerama xrandr \
 		xscrnsaver
 USE_GL=		gl glu
@@ -36,7 +34,7 @@ USE_LDCONFIG=	yes
 
 CFLAGS+=	-isystem${LOCALBASE}/include -L${LOCALBASE}/lib -Wno-unused-command-line-argument
 
-PLIST_SUB=	SHLIB_VER="${PORTVERSION}" SHLIB_VER1="${PORTVERSION:R}"
+PLIST_SUB=	SHLIB_VER="${DISTVERSION}" SHLIB_VER1="${DISTVERSION:R}"
 
 PORTDOCS=	*
 PORTEXAMPLES=	*
diff --git a/devel/allegro5/distinfo b/devel/allegro5/distinfo
index 08e97ee01b89..d8d860a2d972 100644
--- a/devel/allegro5/distinfo
+++ b/devel/allegro5/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1622372860
-SHA256 (liballeg-allegro5-5.2.7.0_GH0.tar.gz) = 1ccc1804be54e6c84b58218cb63143d80d18bf6ed06a0ad49480a3616cddeee1
-SIZE (liballeg-allegro5-5.2.7.0_GH0.tar.gz) = 7101932
+TIMESTAMP = 1652712061
+SHA256 (allegro-5.2.7.0.tar.gz) = c1e3b319d99cb453b39d393572ba2b9f3de42a96de424aee7d4a1abceaaa970c
+SIZE (allegro-5.2.7.0.tar.gz) = 7911231