From c87b4647c9869f4d8f0fdef6ad6c9e2dcd6262bd Mon Sep 17 00:00:00 2001 From: Adrian Panella Date: Mon, 11 Apr 2016 23:56:46 -0500 Subject: [PATCH] Create youtube-dl package Signed-off-by: Adrian Panella --- multimedia/youtube-dl/Makefile | 45 ++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 multimedia/youtube-dl/Makefile diff --git a/multimedia/youtube-dl/Makefile b/multimedia/youtube-dl/Makefile new file mode 100644 index 0000000000..5044735b1c --- /dev/null +++ b/multimedia/youtube-dl/Makefile @@ -0,0 +1,45 @@ +# +# 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 +PKG_VERSION:=2016.04.06 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://youtube-dl.org/downloads/$(PKG_VERSION)/ +PKG_MD5SUM:=6457b915a6df78deb6e730cc425f9695 +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) + +PKG_LICENSE:=Unlicense +PKG_LICENSE_FILES:=LICENSE +PKG_MAINTAINER:=Adrian Panella + + +include $(INCLUDE_DIR)/package.mk + +define Package/youtube-dl + SECTION:=multimedia + CATEGORY:=Multimedia + TITLE:=utility to download videos from YouTube.com + DEPENDS:=+python-openssl + URL:=https://youtube-dl.org +endef + +define Package/youtube-dl/description + youtube-dl is a small command-line program to download videos + from YouTube.com and a few more sites. + It requires the Python interpreter. +endef + +define Package/youtube-dl/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/youtube-dl $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,youtube-dl))