diff options
author | kx <kx@radix.pro> | 2024-01-13 17:15:00 +0300 |
---|---|---|
committer | kx <kx@radix.pro> | 2024-01-13 17:15:00 +0300 |
commit | eb70483593c61da6dd24cde005e5b7a9aac355a7 (patch) | |
tree | e97bd1ec7369c6b97f660c97f2aea92bb918f90b /packages/m/VideoLAN/vlc/Makefile | |
parent | a692ce75f739d921af4a8588e17b1a5720f04a88 (diff) | |
download | sources-eb70483593c61da6dd24cde005e5b7a9aac355a7.tar.xz |
VLC-3.0.20
Diffstat (limited to 'packages/m/VideoLAN/vlc/Makefile')
-rw-r--r-- | packages/m/VideoLAN/vlc/Makefile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/packages/m/VideoLAN/vlc/Makefile b/packages/m/VideoLAN/vlc/Makefile new file mode 100644 index 0000000..73b9996 --- /dev/null +++ b/packages/m/VideoLAN/vlc/Makefile @@ -0,0 +1,40 @@ +# +# Project Home: +# ============ +# https://bitbucket.org/multicoreware/x265_git/wiki/Home +# +# Downloads: +# ========= +# http://download.videolan.org/vlc/${VERSION}/vlc-${VERSION}.tar.xz +# + +url = http://download.videolan.org/vlc + +versions = 3.0.20 + +pkgname = vlc +suffix = tar.xz + +tarballs = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions))) +sha1s = $(addsuffix .sha1sum, $(tarballs)) + + +all: $(tarballs) $(sha1s) + +.PHONY: downloads_clean + +$(tarballs): + @echo -e "\n======= Downloading source tarballs =======\n" + @for tarball in $(tarballs) ; do \ + version=`echo $$tarball | sed 's/\([a-zA-Z0-9]*\)\([-]\)\([0-9]*[\.][0-9]*[\.][0-9]*\)\([\.].*\)/\3/'` ; \ + wget -N $(url)/$${version}/$(pkgname)-$${version}.tar.xz ; \ + done + +$(sha1s): %.$(suffix).sha1sum : %.$(suffix) + @for tarball in $< ; do \ + echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \ + sha1sum --binary $$tarball > $$tarball.sha1sum ; \ + done + +downloads_clean: + @rm -rf $(tarballs) $(sha1s) |