You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.5 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=youtube-dl
  9. PKG_VERSION:=2019.4.17
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=youtube_dl-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/y/youtube_dl/
  13. PKG_HASH:=ea0824ae9a166059ec754c267480198a074bd899c20b2ba497809bac099cde2e
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/youtube_dl-$(PKG_VERSION)
  15. PKG_LICENSE:=Unlicense
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_MAINTAINER:=Adrian Panella <ianchi74@outlook.com>, Josef Schlehofer <pepe.schlehofer@gmail.com>
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../../lang/python/python3-package.mk
  20. define Package/youtube-dl/Default
  21. SECTION:=multimedia
  22. CATEGORY:=Multimedia
  23. TITLE:=Utility to download videos from YouTube.com
  24. DEPENDS:=+ca-certificates
  25. URL:=https://yt-dl.org
  26. endef
  27. define Package/youtube-dl/description
  28. youtube-dl is a small command-line program to download videos
  29. from YouTube.com and other video sites.
  30. It requires the Python3 interpreter.
  31. endef
  32. define Package/youtube-dl
  33. $(call Package/youtube-dl/Default)
  34. DEPENDS+= \
  35. +PACKAGE_youtube-dl:python3 \
  36. +PACKAGE_youtube-dl:python3-email \
  37. +PACKAGE_youtube-dl:python3-xml \
  38. +PACKAGE_youtube-dl:python3-codecs \
  39. +PACKAGE_youtube-dl:python3-ctypes
  40. VARIANT:=python3
  41. endef
  42. $(eval $(call Py3Package,youtube-dl))
  43. $(eval $(call BuildPackage,youtube-dl))
  44. $(eval $(call BuildPackage,youtube-dl-src))