# Maintainer : Mubashshir # Contributor : Tom Gundersen # Contributor : Ionut Biru # Contributor : Thomas Weißschuh # Contributor : Florian Pritz # from: github # what: transmission/transmission # match! -beta\.?[0-9]+$ pkgname=transmission-gtk3 pkgver=4.0.5 pkgrel=1 arch=(x86_64) url="http://www.transmissionbt.com/" pkgdesc='Fast, easy, and free BitTorrent client (GTK+ GUI)' license=(GPL) provides=('transmission-gtk') conflicts=('transmission-gtk') depends=(curl libevent gtk3 hicolor-icon-theme libb64 miniupnpc libnatpmp libdeflate gtkmm3) optdepends=('libnotify: Desktop notification support' 'transmission-cli: daemon and web support') makedepends=( cmake curl dht glibmm-2.68 gtk3 gtkmm3 intltool libb64 libdeflate libevent libnatpmp miniupnpc ninja ) source=("https://github.com/transmission/transmission/releases/download/$pkgver/transmission-$pkgver.tar.xz") sha256sums=('fd68ff114a479200043c30c7e69dba4c1932f7af36ca4c5b5d2edcb5866e6357') build() { export CFLAGS+=" -ffat-lto-objects -Wno-all" cmake -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DENABLE_{CLI,DAEMON,MAC,QT,UTILS}=OFF \ -DINSTALL_{WEB,LIB}=OFF \ -DUSE_SYSTEM_UTP=OFF \ -DENABLE_{GTK,TESTS,UTP}=ON \ -DUSE_GTK_VERSION=3 \ -DUSE_SYSTEM_{B64,DEFLATE,DHT,EVENT2,MINIUPNPC,NATPMP,PSL}=ON \ -DWITH_CRYPTO=openssl \ -S "${pkgname%-gtk3}-$pkgver" -B build cmake --build build --config Release } check() { cd build ctest --output-on-failure -j "$(nproc)" } package() { for comp in gtk po do DESTDIR="$pkgdir" ninja -C build "$comp/install" done install -Dm644 "${pkgname%-gtk3}-$pkgver/COPYING" "$pkgdir/usr/share/licenses/transmission-gtk/COPYING" } # vim: ft=sh:ts=2:et