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.4 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.6.21
  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:=a64ffda79f467c81877d5452d775ebf858b43853ff7ce8644be3a80ebf3f9ea9
  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. URL:=https://yt-dl.org
  25. DEPENDS:=+ca-certificates
  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. +python3 \
  36. +python3-email \
  37. +python3-xml \
  38. +python3-codecs \
  39. +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))