# Maintainer: Uncle Hunto # Contributor: Timothy Redaelli # Contributor: carstene1ns - http://git.io/ctPKG # Contributor: Jkkyll Wu # Contributor: Thomas Dziedzic < gostrc at gmail > # Contributor: Daniel J Griffiths # Contributor: Geoffroy Carrier _branch1=$(git ls-remote -t --refs https://github.com/qbittorrent/qBittorrent.git | awk '{print $2}' | LC_ALL=C sort -bfV | tail -n1 | sed 's/[^0-9,.]*//g') _stable_branch=$(_branch2=${_branch1//./_}; _branch3="${_branch2%*_*}"; printf "v%s_x" "$_branch3") #_stable_branch="v4_0_x" pkgname=qbittorrent-stable-git pkgver=4.1.1.r0.gea5a29018 pkgrel=1 pkgdesc="An advanced BitTorrent client programmed in C++, based on Qt toolkit and libtorrent-rasterbar. Built from source." 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' 'git' 'qt5-tools') optdepends=('python: needed for torrent search tab') provides=('qbittorrent') conflicts=('qbittorrent') install=${pkgname%-*-*}.install source=("${pkgname%-*-*}"::"git+https://github.com/qbittorrent/qBittorrent.git#branch=${_stable_branch}") sha256sums=('SKIP') pkgver() { cd "$srcdir/${pkgname%-*-*}" git describe --long --tags | sed 's/^release-//;s/-/.r/;s/-/./' } build() { cd "$srcdir/${pkgname%-*-*}" ./configure --prefix=/usr make -j"$(nproc)" } package() { cd "$srcdir/${pkgname%-*-*}" make -j"$(nproc)" INSTALL_ROOT="$pkgdir/" install install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" }