Date: Monday, January 10, 2022 @ 17:11:35 Author: arojas Revision: 1099543
archrelease: copy trunk to community-staging-x86_64 Added: qbittorrent/repos/community-staging-x86_64/ qbittorrent/repos/community-staging-x86_64/PKGBUILD (from rev 1099542, qbittorrent/trunk/PKGBUILD) ----------+ PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) Copied: qbittorrent/repos/community-staging-x86_64/PKGBUILD (from rev 1099542, qbittorrent/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-01-10 17:11:35 UTC (rev 1099543) @@ -0,0 +1,54 @@ +# Maintainer: Antonio Rojas <aro...@archlinux.org> +# Contributor: Eli Schwartz <eschwa...@archlinux.org> +# Contributor: Timothy Redaelli <timothy.redae...@gmail.com> +# Contributor: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG +# Contributor: Jkkyll Wu <adaptee at gmail [dot] com> +# Contributor: Thomas Dziedzic < gostrc at gmail > +# Contributor: Daniel J Griffiths <ghost1...@archlinux.us> +# Contributor: Geoffroy Carrier <geoffroy.carr...@koon.fr> + +pkgbase=qbittorrent +pkgname=(qbittorrent qbittorrent-nox) +pkgver=4.4.0 +pkgrel=2 +arch=(x86_64) +url='https://www.qbittorrent.org' +license=(custom GPL) +depends=(libtorrent-rasterbar qt6-base) +makedepends=(cmake boost qt6-tools qt6-svg) +optdepends=('python: needed for torrent search tab') +source=(https://downloads.sourceforge.net/sourceforge/qbittorrent/${pkgname}-${pkgver}.tar.xz{,.asc}) +sha512sums=('92c219969f6f44056579da24fd37dd40969d0b98e14aa29b5f32d2b9c1c7bba1095ba7d40c6d90ca66dd7e65a50f1d63ab1f1360e8b2f9cb64c8e914967cba08' + 'SKIP') +b2sums=('56ed77fba20ec1c3bcd4848ed73190a60504316695ea1f2248ebaf4e9faf03b76c2124adf5a3e99e48a217519befb117f8b463d125f106dc011423c761e4582f' + 'SKIP') +validpgpkeys=('D8F3DA77AAC6741053599C136E4A2D025B7CC9A2') # sledgehammer999 <sledgehammer...@qbittorrent.org> + +build() { + cmake -B build -S $pkgbase-$pkgver \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DQT6=ON + cmake --build build + + cmake -B build-nox -S $pkgbase-$pkgver \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DQT6=ON \ + -DGUI=OFF \ + -DSYSTEMD=ON + cmake --build build-nox +} + +package_qbittorrent() { + pkgdesc='An advanced BitTorrent client programmed in C++, based on Qt toolkit and libtorrent-rasterbar' + depends+=(qt6-svg hicolor-icon-theme) + + DESTDIR="$pkgdir" cmake --install build + install -Dm644 $pkgbase-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname +} + +package_qbittorrent-nox() { + pkgdesc='An advanced BitTorrent client programmed in C++, based on Qt toolkit and libtorrent-rasterbar, w/o gui' + + DESTDIR="$pkgdir" cmake --install build-nox + install -Dm644 $pkgbase-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname +}