Merge pull request #8361 from jandelgado/add_udptunnel_package
[feed/packages.git] / multimedia / youtube-dl / Makefile
1 #
2 # Copyright (C) 2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=youtube-dl
11 PKG_VERSION:=2019.4.7
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=youtube_dl-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/y/youtube_dl/
16 PKG_HASH:=d8250c9fedea3bcf5c2df62012e9814c96db53540a2842b8f8345885adfd0a85
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/youtube_dl-$(PKG_VERSION)
19
20 PKG_LICENSE:=Unlicense
21 PKG_LICENSE_FILES:=LICENSE
22 PKG_MAINTAINER:=Adrian Panella <ianchi74@outlook.com>, Josef Schlehofer <pepe.schlehofer@gmail.com>
23
24 include $(INCLUDE_DIR)/package.mk
25 include ../../lang/python/python3-package.mk
26
27 define Package/youtube-dl/Default
28 SECTION:=multimedia
29 CATEGORY:=Multimedia
30 TITLE:=Utility to download videos from YouTube.com
31 DEPENDS:=+ca-certificates
32 URL:=https://yt-dl.org
33 endef
34
35 define Package/youtube-dl/description
36 youtube-dl is a small command-line program to download videos
37 from YouTube.com and other video sites.
38 It requires the Python3 interpreter.
39 endef
40
41 define Package/youtube-dl
42 $(call Package/youtube-dl/Default)
43 DEPENDS+= \
44 +PACKAGE_youtube-dl:python3 \
45 +PACKAGE_youtube-dl:python3-email \
46 +PACKAGE_youtube-dl:python3-xml \
47 +PACKAGE_youtube-dl:python3-codecs \
48 +PACKAGE_youtube-dl:python3-ctypes
49 VARIANT:=python3
50 endef
51
52 $(eval $(call Py3Package,youtube-dl))
53 $(eval $(call BuildPackage,youtube-dl))
54 $(eval $(call BuildPackage,youtube-dl-src))