From: Michael Tremer Date: Sat, 15 Feb 2025 13:28:09 +0000 (+0000) Subject: macros: Add helpers to make GitHub URLs X-Git-Tag: 0.9.30~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e1f785a118a10705f5da8871473df94e73c3ef94;p=pakfire.git macros: Add helpers to make GitHub URLs Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index 9da7e41ec..c2be8ef53 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1072,6 +1072,7 @@ dist_macros_DATA = \ macros/cflags.macro \ macros/cmake.macro \ macros/constants.macro \ + macros/github.macro \ macros/meson.macro \ macros/ninja.macro \ macros/package-default.macro \ diff --git a/macros/github.macro b/macros/github.macro new file mode 100644 index 000000000..3f4b3f321 --- /dev/null +++ b/macros/github.macro @@ -0,0 +1,31 @@ +############################################################################### +# # +# Pakfire - The IPFire package management system # +# Copyright (C) 2013 Pakfire development team # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +# These macros help to deal with packages that are hosted on GitHub + +github_organization = %{name} +github_project = %{name} +github_version = %{version} + +# The project home URL +github_home = https://github.com/%{github_organization}/%{github_project}/ + +# URL to download sources +github_url = %{github_home}/archive/%{github_version}/