From 8b52500c1099893957e0bb2f937e272f9bcd2007 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Thu, 23 Mar 2023 20:41:02 -0400
Subject: qbittorrent-vuetorrent-bin: initial inclusion

---
 linhes/qbittorrent-vuetorrent-bin/PKGBUILD         | 26 ++++++++++++++++++++++
 .../qbittorrent-vuetorrent.install                 |  6 +++++
 2 files changed, 32 insertions(+)
 create mode 100644 linhes/qbittorrent-vuetorrent-bin/PKGBUILD
 create mode 100644 linhes/qbittorrent-vuetorrent-bin/qbittorrent-vuetorrent.install

diff --git a/linhes/qbittorrent-vuetorrent-bin/PKGBUILD b/linhes/qbittorrent-vuetorrent-bin/PKGBUILD
new file mode 100644
index 0000000..6e35ce2
--- /dev/null
+++ b/linhes/qbittorrent-vuetorrent-bin/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Francesco Minnocci <ascoli dot minnocci at gmail dot com>
+# Contributor: Falk Höppner <falk hoppner se>
+
+pkgname=qbittorrent-vuetorrent-bin
+_pkgname=vuetorrent
+pkgver=1.5.1
+pkgrel=1
+pkgdesc='The sleekest looking WebUI for qBittorrent made with Vue.js!'
+arch=('any')
+url='https://github.com/WDaan/VueTorrent'
+license=('GPL3')
+provides=("qbittorrent-${_pkgname}")
+conflicts=("qbittorrent-${_pkgname}")
+optdepends=(
+    'qbittorrent: for use with qbittorrent'
+    'qbittorrent-nox: for use with qbittorrent-nox'
+)
+install=qbittorrent-vuetorrent.install
+source=("${_pkgname}-$pkgver.zip::https://github.com/WDaan/VueTorrent/releases/download/v$pkgver/${_pkgname}.zip")
+sha512sums=('9dcf41b28c6bdbb2365da400f25b558666203c7adb9f8abcd39133233f397bfa006901581098a0d142f67cb964f18990d1480e39ca514a46d22cc806bc2d14e6')
+
+package() {
+    cd "$srcdir/vuetorrent"
+    find . -type f -exec install -D '{}' "$pkgdir/usr/share/$pkgname/{}" ';'
+}
+# vim:set ts=2 sw=2 et:
diff --git a/linhes/qbittorrent-vuetorrent-bin/qbittorrent-vuetorrent.install b/linhes/qbittorrent-vuetorrent-bin/qbittorrent-vuetorrent.install
new file mode 100644
index 0000000..04af4b9
--- /dev/null
+++ b/linhes/qbittorrent-vuetorrent-bin/qbittorrent-vuetorrent.install
@@ -0,0 +1,6 @@
+post_install() {
+    cat << EOF
+>>> Make sure to enable 'Use alternative Web UI' in qBittorrent under Preferences->Web UI.
+>>> Set 'File location' to /usr/share/qbittorrent-vuetorrent-bin.
+EOF
+}
-- 
cgit v0.12

