2016-04-12 06:56:46 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2015 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=youtube-dl
|
2019-06-29 17:21:27 +02:00
|
|
|
PKG_VERSION:=2019.6.27
|
2016-04-12 06:56:46 +02:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2019-03-13 18:21:47 +01:00
|
|
|
PKG_SOURCE:=youtube_dl-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/y/youtube_dl/
|
2019-06-29 17:21:27 +02:00
|
|
|
PKG_HASH:=9ffbc02a0a150795f076b6a521fdfe2dad3f3305a8e3a0d29a720c551d4a9a44
|
2019-03-13 18:21:47 +01:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/youtube_dl-$(PKG_VERSION)
|
2016-04-12 06:56:46 +02:00
|
|
|
|
|
|
|
PKG_LICENSE:=Unlicense
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2019-01-19 11:08:13 +01:00
|
|
|
PKG_MAINTAINER:=Adrian Panella <ianchi74@outlook.com>, Josef Schlehofer <pepe.schlehofer@gmail.com>
|
2016-04-12 06:56:46 +02:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2019-03-13 18:21:47 +01:00
|
|
|
include ../../lang/python/python3-package.mk
|
2016-04-12 06:56:46 +02:00
|
|
|
|
2019-03-13 18:21:47 +01:00
|
|
|
define Package/youtube-dl/Default
|
2016-04-12 06:56:46 +02:00
|
|
|
SECTION:=multimedia
|
|
|
|
CATEGORY:=Multimedia
|
2019-03-13 18:21:47 +01:00
|
|
|
TITLE:=Utility to download videos from YouTube.com
|
|
|
|
URL:=https://yt-dl.org
|
2019-06-22 18:18:14 +02:00
|
|
|
DEPENDS:=+ca-certificates
|
2016-04-12 06:56:46 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/youtube-dl/description
|
2018-12-13 16:35:47 +01:00
|
|
|
youtube-dl is a small command-line program to download videos
|
2019-03-13 18:21:47 +01:00
|
|
|
from YouTube.com and other video sites.
|
|
|
|
It requires the Python3 interpreter.
|
2016-04-12 06:56:46 +02:00
|
|
|
endef
|
|
|
|
|
2019-03-13 18:21:47 +01:00
|
|
|
define Package/youtube-dl
|
|
|
|
$(call Package/youtube-dl/Default)
|
|
|
|
DEPENDS+= \
|
2019-06-29 17:21:27 +02:00
|
|
|
+python3 \
|
|
|
|
+python3-email \
|
|
|
|
+python3-xml \
|
|
|
|
+python3-codecs \
|
|
|
|
+python3-ctypes \
|
|
|
|
+python3-setuptools
|
2019-03-13 18:21:47 +01:00
|
|
|
VARIANT:=python3
|
2016-04-12 06:56:46 +02:00
|
|
|
endef
|
|
|
|
|
2019-03-13 18:21:47 +01:00
|
|
|
$(eval $(call Py3Package,youtube-dl))
|
2016-04-12 06:56:46 +02:00
|
|
|
$(eval $(call BuildPackage,youtube-dl))
|
2019-03-13 18:21:47 +01:00
|
|
|
$(eval $(call BuildPackage,youtube-dl-src))
|