small-package/qbittorrent/Makefile

84 lines
2.3 KiB
Makefile
Raw Normal View History

2023-02-01 20:20:39 +08:00
#
# Copyright (C) 2017-2020
#
# This is free software, licensed under the GNU General Public License v2.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=qbittorrent
2025-02-18 09:25:25 +08:00
PKG_VERSION:=5.0.4
2023-02-01 20:20:39 +08:00
PKG_RELEASE=1
PKG_SOURCE:=qBittorrent-release-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/qbittorrent/qBittorrent/tar.gz/release-$(PKG_VERSION)?
2025-02-18 09:25:25 +08:00
PKG_HASH:=1c996194b3d28485b6e59525db7f3a0868785c27d4df304cf1c9f57176d4368a
2023-02-01 20:20:39 +08:00
PKG_BUILD_DIR:=$(BUILD_DIR)/qBittorrent-release-$(PKG_VERSION)
PKG_LICENSE:=GPL-2.0+
PKG_LICENSE_FILES:=COPYING
PKG_CPE_ID:=cpe:/a:qbittorrent:qbittorrent
2024-04-02 02:52:10 +08:00
PKG_BUILD_DEPENDS:=qt6tools/host
2023-02-01 20:20:39 +08:00
PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/qbittorrent
SECTION:=net
CATEGORY:=Network
SUBMENU:=BitTorrent
2024-04-02 02:52:10 +08:00
DEPENDS:=+USE_GLIBC:librt +USE_GLIBC:libpthread +libgcc +libstdcpp \
2023-02-01 20:20:39 +08:00
+rblibtorrent \
2024-04-02 02:52:10 +08:00
+libQt6Core \
+libQt6Network \
+libQt6Sql \
+libQt6Xml \
+qt6-plugin-libqopensslbackend \
+qt6-plugin-libqsqlite
2023-02-01 20:20:39 +08:00
TITLE:=bittorrent client programmed in C++ / Qt
URL:=https://www.qbittorrent.org/
PROVIDES:=qBittorrent
endef
define Package/qbittorrent/description
qBittorrent is a bittorrent client programmed in C++ / Qt that uses
libtorrent (sometimes called libtorrent-rasterbar) by Arvid Norberg.
It aims to be a good alternative to all other bittorrent clients out
there. qBittorrent is fast, stable and provides unicode support as
well as many features.
endef
CMAKE_OPTIONS += \
-DCMAKE_BUILD_TYPE=Release \
2024-04-02 02:52:10 +08:00
-DQT6=ON \
2023-02-01 20:20:39 +08:00
-DSTACKTRACE=OFF \
-DWEBUI=ON \
-DGUI=OFF \
2024-04-02 02:52:10 +08:00
-DVERBOSE_CONFIGURE=ON \
-DQT_ADDITIONAL_PACKAGES_PREFIX_PATH=$(STAGING_DIR_HOSTPKG)
2023-02-01 20:20:39 +08:00
ifdef CONFIG_USE_GLIBC
TARGET_LDFLAGS += -ldl -lrt -lpthread
endif
define Package/qbittorrent/conffiles
/etc/config/qbittorrent
endef
define Package/qbittorrent/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/qbittorrent-nox $(1)/usr/bin
2024-08-10 09:17:24 +08:00
$(INSTALL_DIR) $(1)/etc/config $(1)/etc/init.d $(1)/usr/share/qbittorrent
$(INSTALL_BIN) ./files/qbittorrent.init $(1)/etc/init.d/qbittorrent
$(INSTALL_CONF) ./files/qbittorrent.config $(1)/etc/config/qbittorrent
$(INSTALL_CONF) ./files/qBittorrent.conf.example $(1)/usr/share/qbittorrent/qBittorrent.conf.example
2023-02-01 20:20:39 +08:00
endef
$(eval $(call BuildPackage,qbittorrent))