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-0.30.2016.01.10.orig/Makefile
+++ svtplay-dl-0.30.2016.01.10/Makefile
@@ -4,13 +4,13 @@ all: svtplay-dl
         release clean_releasedir $(RELEASE_DIR)
 
 # These variables describe the latest release:
-VERSION = 0.30
+GENERATION = 0.30
 LATEST_RELEASE_DATE = 2016.01.10
-LATEST_RELEASE = $(VERSION).$(LATEST_RELEASE_DATE)
+LATEST_RELEASE = $(GENERATION).$(LATEST_RELEASE_DATE)
 
 # If we build a new release, this is what it will be called:
 NEW_RELEASE_DATE = $(shell date +%Y.%m.%d)
-NEW_RELEASE = $(VERSION).$(NEW_RELEASE_DATE)
+NEW_RELEASE = $(GENERATION).$(NEW_RELEASE_DATE)
 RELEASE_DIR = svtplay-dl-$(NEW_RELEASE)
 
 PREFIX ?= /usr/local
@@ -27,7 +27,7 @@ MANFILE = svtplay-dl.1$(MANFILE_EXT)
 # to remove references to perl.. :-)
 POD2MAN ?= pod2man --section 1 --utf8 \
                    --center "svtplay-dl manual" \
-                   --release "svtplay-dl $(VERSION)" \
+                   --release "svtplay-dl $(GENERATION)" \
                    --date "$(LATEST_RELEASE_DATE)"
 
 PYTHON ?= /usr/bin/env python
--- svtplay-dl-0.30.2016.01.10.orig/lib/Makefile
+++ svtplay-dl-0.30.2016.01.10/lib/Makefile
@@ -18,7 +18,8 @@ export PYFILES = $(sort $(addsuffix /*.p
 
 PYTHON ?= /usr/bin/env python
 
-VERSION = $(shell git describe 2>/dev/null || echo $(LATEST_RELEASE)-unknown)
+GIT_VERSION := $(shell git describe 2>/dev/null || echo $(LATEST_RELEASE)-unknown)
+VERSION ?= $(GIT_VERSION)
 
 svtplay-dl: $(PYFILES)
 	@# Verify that there's no .build already \
