#Maintainer: Dimitris Tzemos pkgname=qbittorrent pkgver=5.1.4 pkgrel=1dj url="http://qbittorrent.sourceforge.net" source=("http://downloads.sourceforge.net/qbittorrent/$pkgname-$pkgver.tar.xz" "README.nox" "rc.qbittorrent-nox.new") docs=("AUTHORS" "Changelog" "COPYING" "COPYING.GPLv?" "README.md") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "qBittorrent (a C++ / Qt5 Bittorrent Client)" "The qBittorrent project was created in March 2006 with the idea" "of developing a new Bittorrent client for Linux (and possibly" "other systems) that would be easy to use, good looking, and" "featureful but lightweight." "qBittorrent is a Free Software released under the GNU GPL license." "The author is Christophe Dumez, a French student in an engineer" "school (UTBM), in IT departement." "" "Homepage: http://qbittorrent.sourceforge.net" ) build() { cd ${SRC}/$pkgname-$pkgver # Build graphical version by default gui="-DGUI=ON"; [[ "${GUI:-yes}" != "yes" ]] && gui="-DGUI=OFF" cmake -B build -G "Ninja" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR:PATH=lib${LIBDIRSUFFIX} \ -DCMAKE_INSTALL_MANDIR=/usr/man \ -DCMAKE_INSTALL_DOCDIR=/usr/doc/$pkgname-$pkgver \ -DCMAKE_BUILD_TYPE=Release \ $gui \ -DSYSTEMD=OFF cmake --build build || return 1 DESTDIR=$PKG cmake --install build --strip || return 1 # adjust .desktop file to be compliant with Slackware 15.0 supported # version of desktop spec (1.4) (SingleMainWindow was added to version # 1.5 Desktop Entry Specification). # https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html sed -i '/^SingleMainWindow/d' $PKG/usr/share/applications/*.desktop || return 1 mkdir -p $PKG/etc/rc.d cp $SRC/rc.qbittorrent-nox.new $PKG/etc/rc.d/ }