From e88ecd29c32ffe3173bd73f23651f5cacf5d901e Mon Sep 17 00:00:00 2001
From: bra1nwave <brainwave@openmailbox.org>
Date: Wed, 1 Nov 2017 00:12:56 +0100
Subject: [PATCH] python-mygpoclient: update to 1.8.

Closes #8752.
---
 srcpkgs/python-mygpoclient/template | 24 ++++++++++++++++++------
 srcpkgs/python3-mygpoclient         |  1 +
 2 files changed, 19 insertions(+), 6 deletions(-)
 create mode 120000 srcpkgs/python3-mygpoclient

diff --git a/srcpkgs/python-mygpoclient/template b/srcpkgs/python-mygpoclient/template
index ed4c49b3e3..20276e818c 100644
--- a/srcpkgs/python-mygpoclient/template
+++ b/srcpkgs/python-mygpoclient/template
@@ -1,16 +1,28 @@
 # Template file for 'python-mygpoclient'
 pkgname=python-mygpoclient
-version=1.7
+version=1.8
 revision=1
 noarch=yes
 wrksrc="mygpoclient-${version}"
-build_style=python2-module
+build_style=python-module
 pycompile_module="mygpoclient"
-hostmakedepends="python-devel"
-makedepends="python-devel"
-short_desc="Client Library for gpodder.net"
+hostmakedepends="python-devel python3-devel"
+makedepends="python-devel python3-devel"
+depends="python"
+short_desc="Client Library for gpodder.net (Python2)"
 maintainer="bra1nwave <brainwave@openmailbox.org>"
 license="GPL-3"
 homepage="https://github.com/gpodder/mygpoclient"
 distfiles="${homepage}/archive/${version}.tar.gz"
-checksum=643955e7087c93736f147815ed839b984dd5d25f059ad654a730e711bd335e17
+checksum=65fcb3ab220a2ba2d32a77f969b423a2f663413b6c485b7b02e5a955b28e68d2
+
+python3-mygpoclient_package() {
+	short_desc="${short_desc/Python2/Python3}"
+	pycompile_module="mygpoclient"
+	noarch=yes
+	depends="python3"
+	pkg_install() {
+		vmove usr/lib/python3*
+		vmove usr/bin/mygpo-*3
+	}
+}
diff --git a/srcpkgs/python3-mygpoclient b/srcpkgs/python3-mygpoclient
new file mode 120000
index 0000000000..b1c69e6b81
--- /dev/null
+++ b/srcpkgs/python3-mygpoclient
@@ -0,0 +1 @@
+python-mygpoclient
\ No newline at end of file