From 8f4f49fc21eafa59ac63a7a86e23bd08d832dbad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= <hugo@lysator.liu.se>
Date: Sat, 5 Mar 2022 20:13:06 +0100
Subject: [PATCH] Start building package.

Ashuffle requires at least libabsl 20210324, but Debian currently ships
20200923.
---
 changelog                                     |  5 ++++
 control                                       | 21 ++++++++++++++++
 ...01-Don-t-include-absl_low_level_hash.patch | 24 +++++++++++++++++++
 patches/series                                |  1 +
 rules                                         | 13 ++++++++++
 source/format                                 |  1 +
 watch                                         |  3 +++
 7 files changed, 68 insertions(+)
 create mode 100644 changelog
 create mode 100644 control
 create mode 100644 patches/0001-Don-t-include-absl_low_level_hash.patch
 create mode 100644 patches/series
 create mode 100755 rules
 create mode 100644 source/format
 create mode 100644 watch

diff --git a/changelog b/changelog
new file mode 100644
index 0000000..290bf86
--- /dev/null
+++ b/changelog
@@ -0,0 +1,5 @@
+ashuffle (3.13.3-1) UNRELEASED; urgency=medium
+
+  * Initial release.
+
+ -- Hugo Hörnquist <hugo@lysator.liu.se>  Sat, 05 Mar 2022 18:26:11 +0100
diff --git a/control b/control
new file mode 100644
index 0000000..01ff04f
--- /dev/null
+++ b/control
@@ -0,0 +1,21 @@
+Source: ashuffle
+Section: sound
+Priority: optional
+Maintainer: Hugo Hörnquist <hugo@lysator.liu.se>
+Build-Depends: debhelper-compat (= 12),
+               meson,
+	       ninja-build,
+               libmpdclient-dev,
+	       libabsl-dev,
+               libyaml-cpp-dev,
+               googletest,
+Standards-Version: 4.5.0
+Homepage: https://github.com/Joshkunz/ashuffle
+Vcs-Git: https://git.lysator.liu.se/hugo/deb-ashuffle.git
+Vcs-Browser: https://git.lysator.liu.se/hugo/deb-ashuffle
+
+Package: ashuffle
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Suggests: mpd
+Description:
diff --git a/patches/0001-Don-t-include-absl_low_level_hash.patch b/patches/0001-Don-t-include-absl_low_level_hash.patch
new file mode 100644
index 0000000..84486fb
--- /dev/null
+++ b/patches/0001-Don-t-include-absl_low_level_hash.patch
@@ -0,0 +1,24 @@
+From 0be9da1611ef93970b71aabb37c9fd774f0ae55a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= <hugo@lysator.liu.se>
+Date: Sat, 5 Mar 2022 19:33:01 +0100
+Subject: [PATCH] Don't include absl_low_level_hash
+
+---
+ meson.build | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/meson.build b/meson.build
+index 8f45c14..e08a4ea 100644
+--- a/meson.build
++++ b/meson.build
+@@ -59,7 +59,6 @@ absl_libs = [
+   # Via Hash:
+   'absl_hash',
+   'absl_city',
+-  'absl_low_level_hash',
+ 
+   # Via Time:
+   'absl_time',
+-- 
+2.35.1
+
diff --git a/patches/series b/patches/series
new file mode 100644
index 0000000..0e6b27a
--- /dev/null
+++ b/patches/series
@@ -0,0 +1 @@
+0001-Don-t-include-absl_low_level_hash.patch
diff --git a/rules b/rules
new file mode 100755
index 0000000..73abd99
--- /dev/null
+++ b/rules
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@
+
+override_dh_auto_configure:
+	dh_auto_configure -- -Dunsupported_use_system_absl=true -Dunsupported_use_system_yamlcpp=true -Dunsupported_use_system_gtest=true
+
+override_dh_build:
+	ninja -C build
+
+# meson -Dbuildtype=release -Dunsupported_use_system_absl=true build
+# ninja -C build install
diff --git a/source/format b/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/watch b/watch
new file mode 100644
index 0000000..eb8cbb6
--- /dev/null
+++ b/watch
@@ -0,0 +1,3 @@
+version=4
+opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/ashuffle-$1\.tar\.gz/ \
+  https://github.com/joshkunz/ashuffle/tags .*/v?(\d\S+)\.tar\.gz
-- 
GitLab