[arch-commits] Commit in qbittorrent/trunk (3 files)
Timothy Redaelli
tredaelli at archlinux.org
Mon Mar 14 17:40:08 UTC 2016
Date: Monday, March 14, 2016 @ 18:40:08
Author: tredaelli
Revision: 166737
upgpkg: qbittorrent 3.3.3-2
Add qbittorrent-nox package
Added:
qbittorrent/trunk/qbittorrent.service
qbittorrent/trunk/qbittorrent at .service
Modified:
qbittorrent/trunk/PKGBUILD
----------------------+
PKGBUILD | 55 ++++++++++++++++++++++++++++++++++++-------------
qbittorrent.service | 11 +++++++++
qbittorrent at .service | 12 ++++++++++
3 files changed, 64 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-03-14 15:07:55 UTC (rev 166736)
+++ PKGBUILD 2016-03-14 17:40:08 UTC (rev 166737)
@@ -6,30 +6,57 @@
# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
# Contributor: Geoffroy Carrier <geoffroy.carrier at koon.fr>
-pkgname=qbittorrent
+pkgbase=qbittorrent
+pkgname=(qbittorrent qbittorrent-nox)
pkgver=3.3.3
-pkgrel=1
-pkgdesc="An advanced BitTorrent client programmed in C++, based on Qt toolkit and libtorrent-rasterbar."
+pkgrel=2
arch=('i686' 'x86_64')
url="http://www.qbittorrent.org"
license=('custom' 'GPL')
-depends=('libtorrent-rasterbar' 'qt5-base' 'desktop-file-utils' 'hicolor-icon-theme' 'xdg-utils')
-makedepends=('boost' 'qt5-tools')
-optdepends=('python: needed for torrent search tab')
-install=$pkgname.install
-source=("http://downloads.sourceforge.net/sourceforge/qbittorrent/$pkgname-$pkgver.tar.xz")
-sha256sums=('9c8d8bdc3fb2632019cb3ee5f811baaa41b41fe7ce542c753c6771bcc110db53')
+makedepends=('libtorrent-rasterbar' 'qt5-base' 'desktop-file-utils' 'hicolor-icon-theme' 'xdg-utils' 'boost' 'qt5-tools')
+source=("http://downloads.sourceforge.net/sourceforge/qbittorrent/$pkgname-$pkgver.tar.xz"
+ 'qbittorrent.service'
+ 'qbittorrent at .service')
+sha256sums=('9c8d8bdc3fb2632019cb3ee5f811baaa41b41fe7ce542c753c6771bcc110db53'
+ '8c5879673c66368ada97f6d70a1d8fe3b6a4995f79aab4fc6bf54fbdcbe811d0'
+ '12dfd06104eaf302b79328c8096248c051208f69348e33f7fb2e4a2fb49caa29')
build() {
- cd $pkgname-$pkgver
+ cd $pkgbase-$pkgver
- ./configure --prefix=/usr
+ mkdir $pkgbase
+ pushd $pkgbase
+ ../configure --prefix=/usr
make
+
+ # Build nox variant
+ popd
+ mkdir "$pkgbase-nox"
+ pushd "$pkgbase-nox"
+ ../configure --prefix=/usr --disable-gui
}
-package() {
- cd $pkgname-$pkgver
+package_qbittorrent() {
+ pkgdesc="An advanced BitTorrent client programmed in C++, based on Qt toolkit and libtorrent-rasterbar."
+ depends=('libtorrent-rasterbar' 'qt5-base' 'desktop-file-utils' 'hicolor-icon-theme' 'xdg-utils')
+ optdepends=('python: needed for torrent search tab')
+ install=$pkgname.install
+ cd $pkgbase-$pkgver/$pkgbase
+
make INSTALL_ROOT="$pkgdir/" install
- install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+ install -Dm644 "$srcdir/$pkgbase-$pkgver/COPYING" "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
+
+package_qbittorrent-nox() {
+ pkgdesc="An advanced BitTorrent client programmed in C++, based on Qt toolkit and libtorrent-rasterbar, w/o gui"
+ depends=('libtorrent-rasterbar' 'qt5-base')
+
+ cd $pkgbase-$pkgver/$pkgbase-nox
+
+ make INSTALL_ROOT="$pkgdir/" install
+ install -Dm644 "$srcdir/$pkgbase-$pkgver/COPYING" "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+
+ install -Dm755 "$srcdir/qbittorrent.service" "$pkgdir/usr/lib/systemd/user/qbittorrent.service"
+ install -Dm755 "$srcdir/qbittorrent at .service" "$pkgdir/usr/lib/systemd/system/qbittorrent at .service"
+}
Added: qbittorrent.service
===================================================================
--- qbittorrent.service (rev 0)
+++ qbittorrent.service 2016-03-14 17:40:08 UTC (rev 166737)
@@ -0,0 +1,11 @@
+[Unit]
+Description=qbittorrent-nox Daemon
+Documentation=https://github.com/qbittorrent/qBittorrent/wiki
+After=network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/qbittorrent-nox --daemon --webui-port=8080
+
+[Install]
+WantedBy=default.target
Added: qbittorrent at .service
===================================================================
--- qbittorrent at .service (rev 0)
+++ qbittorrent at .service 2016-03-14 17:40:08 UTC (rev 166737)
@@ -0,0 +1,12 @@
+[Unit]
+Description=qbittorrent-nox Daemon
+Documentation=https://github.com/qbittorrent/qBittorrent/wiki
+After=network.target
+
+[Service]
+User=%i
+Type=forking
+ExecStart=/usr/bin/qbittorrent-nox --daemon --webui-port=8080
+
+[Install]
+WantedBy=multi-user.target
More information about the arch-commits
mailing list