SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "qbittorrent"

# SliTaz package receipt.

PACKAGE="qbittorrent"
VERSION="3.1.9.2"
CATEGORY="network"
SHORT_DESC="A BitTorrent client in Qt4."
MAINTAINER="al.bobylev@gmail.com"
LICENSE="GPL2"
WEB_SITE="https://github.com/qbittorrent/qBittorrent"

TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="libQtCore libQtDBus libQtGui libQtNetwork libQtXml libboost-system \
    libcrypto libssl libtorrent-rasterbar zlib"
BUILD_DEPENDS="gcc83 Qt4-dev qmake libboost-dev libtorrent-rasterbar-dev \
    geoip openssl-dev"
GENERIC_PIXMAPS="no"; GENERIC_MENUS="no"

current_version()
{
    wget -O - https://sourceforge.net/projects/$PACKAGE/files/$PACKAGE 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
}

# Rules to configure and make the package.
compile_rules()
{
    export    CC=gcc-83
    export    CXX=g++-83

    ./configure \
        --prefix=/usr &&
    make &&
    make INSTALL_ROOT=$install install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share/icons/hicolor

    cp -a $install/usr/bin $fs/usr

    cp -a $install/usr/share/applications $fs/usr/share
    sdft $fs/usr/share/applications/qBittorrent.desktop -g -tf -i
    sed -i '/^#/d' $fs/usr/share/applications/qBittorrent.desktop

    for size in 16 24 32 48; do
        cp -a $install/usr/share/icons/hicolor/${size}x$size \
            $fs/usr/share/icons/hicolor
    done
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)