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.

55 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.27
  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:=9ffbc02a0a150795f076b6a521fdfe2dad3f3305a8e3a0d29a720c551d4a9a44
  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. +python3-setuptools
  41. VARIANT:=python3
  42. endef
  43. $(eval $(call Py3Package,youtube-dl))
  44. $(eval $(call BuildPackage,youtube-dl))
  45. $(eval $(call BuildPackage,youtube-dl-src))