aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2021-10-21 15:10:16 -0400
committerSimon Zeni <simon@bl4ckb0ne.ca>2021-11-30 16:07:41 -0500
commit40760bff90d661d28ce91bcf47c63be0f5fbf0cd (patch)
tree04b6e5d5f5ebff6a037c10359cdb766e928be0b1
parent9342efab0affbe30018f3042d2c72ad85f2d8510 (diff)
downloadaports-40760bff90d661d28ce91bcf47c63be0f5fbf0cd.tar.gz
aports-40760bff90d661d28ce91bcf47c63be0f5fbf0cd.tar.bz2
aports-40760bff90d661d28ce91bcf47c63be0f5fbf0cd.tar.xz
testing/qbittorrent: rename from qbittorrent-nox
GUI build has been enabled
-rw-r--r--testing/qbittorrent-nox/APKBUILD45
-rw-r--r--testing/qbittorrent/APKBUILD83
-rw-r--r--testing/qbittorrent/qbittorrent-nox.confd (renamed from testing/qbittorrent-nox/qbittorrent-nox.confd)0
-rw-r--r--testing/qbittorrent/qbittorrent-nox.initd (renamed from testing/qbittorrent-nox/qbittorrent-nox.initd)0
-rw-r--r--testing/qbittorrent/qbittorrent-nox.pre-install (renamed from testing/qbittorrent-nox/qbittorrent-nox.pre-install)0
5 files changed, 83 insertions, 45 deletions
diff --git a/testing/qbittorrent-nox/APKBUILD b/testing/qbittorrent-nox/APKBUILD
deleted file mode 100644
index 7ce54ba2b4..0000000000
--- a/testing/qbittorrent-nox/APKBUILD
+++ /dev/null
@@ -1,45 +0,0 @@
-# Contributor: Jan Tatje <jan@jnt.io>
-# Maintainer: Jan Tatje <jan@jnt.io>
-pkgname=qbittorrent-nox
-pkgver=4.3.9
-pkgrel=1
-pkgdesc="qBittorrent client (webui only)"
-url="https://www.qbittorrent.org/"
-arch="all !armhf" # blocked by libtorrent-rasterbar
-license="GPL-2.0-or-later"
-options="!check" # qBittorrent has no tests
-makedepends="boost-dev qt5-qtbase-dev qt5-qttools-dev libtorrent-rasterbar-dev"
-install="$pkgname.pre-install"
-subpackages="$pkgname-openrc $pkgname-doc"
-source="$pkgname-$pkgver.tar.gz::https://github.com/qbittorrent/qBittorrent/archive/release-$pkgver.tar.gz
- qbittorrent-nox.initd
- qbittorrent-nox.confd
- "
-builddir="$srcdir/qBittorrent-release-$pkgver"
-
-# secfixes:
-# 4.1.6-r3:
-# - CVE-2019-13640
-
-build() {
- ./configure \
- --prefix=/usr \
- --disable-gui \
- --disable-qt-dbus
- make
-}
-
-package() {
- make INSTALL_ROOT="$pkgdir" install
-
- install -m755 -D "$srcdir"/$pkgname.initd \
- "$pkgdir"/etc/init.d/$pkgname
- install -m644 -D "$srcdir"/$pkgname.confd \
- "$pkgdir"/etc/conf.d/$pkgname
-}
-
-sha512sums="
-ec33f67895fbf47acc2f79d9c9e16db8b96c756cf493b76eb24b90e13a790a709104ea9aa378ee111d8c38b605bed5192b366d1917bbf160b21aa2ae3aacd2d1 qbittorrent-nox-4.3.9.tar.gz
-f856d56dc97af4349a71861624028b334a741ecf546c7782a4530ee9786c8c801b5af5297a86eaa0b0caa29f308530ab1f654300162a4a77330946a47896871f qbittorrent-nox.initd
-c6bf667c5f83dd5fb147245a8088c2672f5a239ac573aa612ae90c060dd09182f2ebb6d972b85f35fd3792f1a8eaa7f6e4b56d0381441c4d9d996ba6022dbcc6 qbittorrent-nox.confd
-"
diff --git a/testing/qbittorrent/APKBUILD b/testing/qbittorrent/APKBUILD
new file mode 100644
index 0000000000..e5976036e8
--- /dev/null
+++ b/testing/qbittorrent/APKBUILD
@@ -0,0 +1,83 @@
+# Contributor: Jan Tatje <jan@jnt.io>
+# Contributor: Simon Zeni <simon@bl4ckb0ne.ca>
+# Maintainer: Jan Tatje <jan@jnt.io>
+pkgname=qbittorrent
+pkgver=4.3.9
+pkgrel=1
+pkgdesc="qBittorrent client"
+url="https://www.qbittorrent.org/"
+arch="all !armhf" # libtorrent-rasterbar
+license="GPL-2.0-or-later"
+options="!check" # qBittorrent has no tests
+depends="qt5-qtbase qt5-qtsvg"
+makedepends="cmake boost-dev qt5-qtbase-dev qt5-qttools-dev qt5-qtsvg-dev
+ libtorrent-rasterbar-dev"
+subpackages="$pkgname-doc $pkgname-nox $pkgname-nox-openrc:nox_openrc
+ $pkgname-nox-doc:nox_doc"
+source="https://downloads.sourceforge.net/project/qbittorrent/qbittorrent/qbittorrent-$pkgver/qbittorrent-$pkgver.tar.gz
+ qbittorrent-nox.initd
+ qbittorrent-nox.confd
+ "
+
+# secfixes:
+# 4.1.6-r3:
+# - CVE-2019-13640
+
+build() {
+ # GUI
+ cmake -B $pkgname \
+ -DWEBUI=OFF \
+ -DSTACKTRACE=OFF \
+ -DCMAKE_BUILD_TYPE="release" \
+ -DCMAKE_INSTALL_PREFIX="/usr"
+ cmake --build $pkgname
+
+ cmake -B $pkgname-nox \
+ -DGUI=OFF \
+ -DDBUS=OFF \
+ -DSTACKTRACE=OFF \
+ -DCMAKE_BUILD_TYPE="release" \
+ -DCMAKE_INSTALL_PREFIX="/usr"
+ cmake --build $pkgname-nox
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --install $pkgname
+}
+
+nox() {
+ install="$pkgname-nox.pre-install"
+ pkgdesc="qBittorrent client webui"
+ depends=""
+
+ mkdir -p $subpkgdir
+ cd $builddir/$pkgname-nox
+ install -d "$subpkgdir"/usr/bin
+ mv qbittorrent-nox $subpkgdir/usr/bin/
+}
+
+nox_doc() {
+ mkdir -p $subpkgdir
+ cd $builddir
+ install -d "$subpkgdir"/usr/share/man/man1
+ mv doc/qbittorrent-nox.1 $subpkgdir/usr/share/man/man1/
+
+ default_doc
+}
+
+nox_openrc() {
+ mkdir -p $subpkgdir
+ depends="openrc"
+ pkgdesc="qBittorrent client webui (OpenRC init scripts)"
+ install_if="openrc ${subpkgname%-openrc}=$pkgver-r$pkgrel"
+
+ install -m755 -D "$srcdir"/$pkgname-nox.initd \
+ "$subpkgdir"/etc/init.d/$pkgname-nox
+ install -m644 -D "$srcdir"/$pkgname-nox.confd \
+ "$subpkgdir"/etc/conf.d/$pkgname-nox
+}
+sha512sums="
+78de7d3132fd97411fc1ff75053e0d20e68ec604378fd224a047c6ae3d22e44ac103c389bce5e15e70f0e792e80f901f77f7a460437145bdcf9477398b3832d6 qbittorrent-4.3.9.tar.gz
+f856d56dc97af4349a71861624028b334a741ecf546c7782a4530ee9786c8c801b5af5297a86eaa0b0caa29f308530ab1f654300162a4a77330946a47896871f qbittorrent-nox.initd
+c6bf667c5f83dd5fb147245a8088c2672f5a239ac573aa612ae90c060dd09182f2ebb6d972b85f35fd3792f1a8eaa7f6e4b56d0381441c4d9d996ba6022dbcc6 qbittorrent-nox.confd
+"
diff --git a/testing/qbittorrent-nox/qbittorrent-nox.confd b/testing/qbittorrent/qbittorrent-nox.confd
index 58f33c07a4..58f33c07a4 100644
--- a/testing/qbittorrent-nox/qbittorrent-nox.confd
+++ b/testing/qbittorrent/qbittorrent-nox.confd
diff --git a/testing/qbittorrent-nox/qbittorrent-nox.initd b/testing/qbittorrent/qbittorrent-nox.initd
index 3669c90001..3669c90001 100644
--- a/testing/qbittorrent-nox/qbittorrent-nox.initd
+++ b/testing/qbittorrent/qbittorrent-nox.initd
diff --git a/testing/qbittorrent-nox/qbittorrent-nox.pre-install b/testing/qbittorrent/qbittorrent-nox.pre-install
index 87016a2233..87016a2233 100644
--- a/testing/qbittorrent-nox/qbittorrent-nox.pre-install
+++ b/testing/qbittorrent/qbittorrent-nox.pre-install