Subject: Collected Debian patches for svtplay-dl
Author: Olof Johansson <olof@ethup.se>

The svtplay-dl package is maintained in Git rather than maintaining
patches as separate files, and separating the patches doesn't seem to
be worth the effort.  They are therefore all included in this single
Debian patch.

For full commit history and separated commits, see the packaging Git
repository.
--- svtplay-dl-2.1.orig/Makefile
+++ svtplay-dl-2.1/Makefile
@@ -4,7 +4,7 @@ all: svtplay-dl
         release clean_releasedir $(RELEASE_DIR)
 
 # These variables describe the latest release:
-VERSION = 1.9.11
+export VERSION = 2.1
 LATEST_RELEASE = $(VERSION)
 
 # Compress the manual if MAN_GZIP is set to y,
@@ -22,6 +22,7 @@ POD2MAN ?= pod2man --section 1 --utf8 \
 
 PREFIX ?= /usr/local
 BINDIR = $(PREFIX)/bin
+MANDIR = $(PREFIX)/share/man/man1
 
 PYTHON ?= /usr/bin/env python3
 export PYTHONPATH=lib
@@ -46,9 +47,10 @@ svtplay-dl.1.gz: svtplay-dl.1
 test:
 	sh scripts/run-tests.sh $(TEST_OPTS)
 
-install: svtplay-dl
-	install -d $(DESTDIR)$(BINDIR)
+install: svtplay-dl svtplay-dl.1.gz
+	install -d $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)
 	install -m 755 svtplay-dl $(DESTDIR)$(BINDIR)
+	install -m 644 $(MANFILE).gz $(DESTDIR)$(MANDIR)
 
 cover:
 	sh scripts/run-tests.sh -C
--- svtplay-dl-2.1.orig/lib/Makefile
+++ svtplay-dl-2.1/lib/Makefile
@@ -17,7 +17,7 @@ export PYFILES = $(sort $(addsuffix /*.p
 
 PYTHON ?= /usr/bin/env python3
 
-VERSION = $(shell git describe 2>/dev/null || echo $(LATEST_RELEASE)-unknown)
+VERSION$(NO_GIT_VERSION) = $(shell git describe 2>/dev/null || echo $(LATEST_RELEASE)-unknown)
 
 svtplay-dl: $(PYFILES)
 	@# Verify that there's no .build already \
