From 328f444bc77d4323d5eceb93e6d84185322445ba Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Thu, 9 Dec 2021 15:32:47 -0500 Subject: add yt-dlp --- yt-dlp/debian/rules | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 yt-dlp/debian/rules (limited to 'yt-dlp/debian/rules') diff --git a/yt-dlp/debian/rules b/yt-dlp/debian/rules new file mode 100755 index 0000000..9b22958 --- /dev/null +++ b/yt-dlp/debian/rules @@ -0,0 +1,26 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE = 1 +export PYBUILD_NAME = yt_dlp +export PATH := $(CURDIR)/debian/utils:$(PATH) + +%: + dh $@ --with python3 --buildsystem=pybuild + +override_dh_auto_configure: + PREFIX=/usr SYSCONFDIR=/etc make + rm yt-dlp + +override_dh_clean: + make clean + dh_clean CONTRIBUTING.md + +override_dh_auto_test: +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) + echo DISABLED FOR STACKRPMS make offlinetest PYTHON=python3 +endif + +basenum = $(shell sed -n '/Currently supported sites/=' debian/control) +generate_supported_sites: + $(shell head -n +$$(expr $(basenum) + 1) debian/control > debian/control.new; \ + sed -n -e 's/.* \- \*\*/ /g' -e 's/:.*//' -e 's/\*\*.*/,/p' supportedsites.md >> debian/control.new) -- cgit