e3fc425e (kx 2023-12-27 11:57:35 +0300 1) #
e3fc425e (kx 2023-12-27 11:57:35 +0300 2) # Project Home:
e3fc425e (kx 2023-12-27 11:57:35 +0300 3) # ============
e3fc425e (kx 2023-12-27 11:57:35 +0300 4) # https://libmtp.sourceforge.net/
e3fc425e (kx 2023-12-27 11:57:35 +0300 5) #
e3fc425e (kx 2023-12-27 11:57:35 +0300 6) # Downloads:
e3fc425e (kx 2023-12-27 11:57:35 +0300 7) # =========
e3fc425e (kx 2023-12-27 11:57:35 +0300 8) # https://downloads.sourceforge.net/libmtp/libmtp-${VERSION}.tar.gz
e3fc425e (kx 2023-12-27 11:57:35 +0300 9) #
e3fc425e (kx 2023-12-27 11:57:35 +0300 10)
e3fc425e (kx 2023-12-27 11:57:35 +0300 11) url = https://downloads.sourceforge.net/libmtp
e3fc425e (kx 2023-12-27 11:57:35 +0300 12)
e3fc425e (kx 2023-12-27 11:57:35 +0300 13) versions = 1.1.21
e3fc425e (kx 2023-12-27 11:57:35 +0300 14)
e3fc425e (kx 2023-12-27 11:57:35 +0300 15) pkgname = libmtp
e3fc425e (kx 2023-12-27 11:57:35 +0300 16) tgzname = libmtp
e3fc425e (kx 2023-12-27 11:57:35 +0300 17) suffix = tar.gz
e3fc425e (kx 2023-12-27 11:57:35 +0300 18)
e3fc425e (kx 2023-12-27 11:57:35 +0300 19) tarballs = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
e3fc425e (kx 2023-12-27 11:57:35 +0300 20) sha1s = $(addsuffix .sha1sum, $(tarballs))
e3fc425e (kx 2023-12-27 11:57:35 +0300 21)
e3fc425e (kx 2023-12-27 11:57:35 +0300 22)
e3fc425e (kx 2023-12-27 11:57:35 +0300 23) all: $(tarballs) $(sha1s)
e3fc425e (kx 2023-12-27 11:57:35 +0300 24)
e3fc425e (kx 2023-12-27 11:57:35 +0300 25) .PHONY: downloads_clean
e3fc425e (kx 2023-12-27 11:57:35 +0300 26)
e3fc425e (kx 2023-12-27 11:57:35 +0300 27) $(tarballs):
e3fc425e (kx 2023-12-27 11:57:35 +0300 28) @echo -e "\n======= Downloading source tarballs =======\n"
e3fc425e (kx 2023-12-27 11:57:35 +0300 29) @for version in $(versions) ; do \
e3fc425e (kx 2023-12-27 11:57:35 +0300 30) wget -N $(url)/$(pkgname)-$$version.$(suffix) ; \
e3fc425e (kx 2023-12-27 11:57:35 +0300 31) done
e3fc425e (kx 2023-12-27 11:57:35 +0300 32)
e3fc425e (kx 2023-12-27 11:57:35 +0300 33) $(sha1s): %.$(suffix).sha1sum : %.$(suffix)
e3fc425e (kx 2023-12-27 11:57:35 +0300 34) @for tarball in $< ; do \
e3fc425e (kx 2023-12-27 11:57:35 +0300 35) echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
e3fc425e (kx 2023-12-27 11:57:35 +0300 36) sha1sum --binary $$tarball > $$tarball.sha1sum ; \
e3fc425e (kx 2023-12-27 11:57:35 +0300 37) done
e3fc425e (kx 2023-12-27 11:57:35 +0300 38)
e3fc425e (kx 2023-12-27 11:57:35 +0300 39) downloads_clean:
e3fc425e (kx 2023-12-27 11:57:35 +0300 40) @rm -rf $(tarballs) $(sha1s)