diff options
author | kx <kx@radix.pro> | 2023-04-11 06:54:40 +0300 |
---|---|---|
committer | kx <kx@radix.pro> | 2023-04-11 06:54:40 +0300 |
commit | 19dc4c5d37a41a6fa8b1076b568191d0b61389c2 (patch) | |
tree | 858ac8f02295148d7fa50a031171badc550bad32 /packages/a/apcupsd | |
parent | 616e36d9e9e3e56af1ea2db055012b77863d09e6 (diff) | |
download | sources-19dc4c5d37a41a6fa8b1076b568191d0b61389c2.tar.xz |
applications
Diffstat (limited to 'packages/a/apcupsd')
-rw-r--r-- | packages/a/apcupsd/Makefile | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/packages/a/apcupsd/Makefile b/packages/a/apcupsd/Makefile new file mode 100644 index 0000000..a3d4ea6 --- /dev/null +++ b/packages/a/apcupsd/Makefile @@ -0,0 +1,44 @@ +# +# Project Home: +# ============ +# https://www.apcupsd.org +# https://apcupsd.sourceforge.net +# +# Downloads: +# ========= +# https://downloads.sourceforge.net/project/apcupsd/apcupsd - Stable/${VERSION} +# + +url = https://downloads.sourceforge.net/project/apcupsd/apcupsd%20-%20Stable + +versions = 3.14.12 3.14.13 3.14.14 + +pkg_name = apcupsd +arch_type = tar.gz +suffixes = $(arch_type) $(arch_type).sig + +files = $(foreach suffix, $(suffixes), $(addsuffix .$(suffix), $(addprefix $(pkg_name)-, $(versions)))) +tarballs = $(addsuffix .$(arch_type), $(addprefix $(pkg_name)-, $(versions))) +sha1s = $(addsuffix .sha1sum, $(tarballs)) + + +all: $(files) $(sha1s) + +.PHONY: downloads_clean + +$(files): + @echo -e "\n======= Downloading source tarballs =======\n" + @for version in $(versions) ; do \ + for suffix in $(suffixes) ; do \ + wget -N $(url)/$$version/$(pkg_name)-$$version.$$suffix ; \ + done ; \ + done + +$(sha1s): %.$(arch_type).sha1sum : %.$(arch_type) + @for tarball in $< ; do \ + echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \ + sha1sum --binary $$tarball > $$tarball.sha1sum ; \ + done + +downloads_clean: + @rm -rf $(files) $(sha1s) |