76 lines
1.8 KiB
Makefile
Raw Normal View History

#
# Copyright (C) 2017-2020
#
# This is free software, licensed under the GNU General Public License v2.
#
2019-06-11 18:51:44 +08:00
include $(TOPDIR)/rules.mk
2019-11-27 23:31:49 -08:00
PKG_NAME:=qbittorrent
PKG_VERSION:=4.3.9
2020-04-09 00:25:33 +08:00
PKG_RELEASE=1
2019-06-11 18:51:44 +08:00
PKG_SOURCE:=qBittorrent-release-$(PKG_VERSION).tar.gz
2019-11-27 23:31:49 -08:00
PKG_SOURCE_URL:=https://codeload.github.com/qbittorrent/qBittorrent/tar.gz/release-$(PKG_VERSION)?
PKG_HASH:=6ff801cfe2beeb9fca24d4565e863e06f46bb8fc56c0eb833293ff31b3bfe83a
2019-11-27 23:31:49 -08:00
PKG_BUILD_DIR:=$(BUILD_DIR)/qBittorrent-release-$(PKG_VERSION)
2019-06-11 18:51:44 +08:00
PKG_LICENSE:=GPL-2.0+
PKG_LICENSE_FILES:=COPYING
PKG_CPE_ID:=cpe:/a:qbittorrent:qbittorrent
PKG_BUILD_DEPENDS:=qttools
2019-06-11 18:51:44 +08:00
PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1
PKG_USE_MIPS16:=0
include $(INCLUDE_DIR)/package.mk
define Package/qbittorrent
SECTION:=net
CATEGORY:=Network
SUBMENU:=BitTorrent
DEPENDS:=+libgcc +libstdcpp \
+rblibtorrent \
+libopenssl \
+qt5-core \
+qt5-network \
+qt5-xml \
+zlib
TITLE:=bittorrent client programmed in C++ / Qt
URL:=https://www.qbittorrent.org/
PROVIDES:=qBittorrent
2019-06-11 18:51:44 +08:00
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.
2019-06-11 18:51:44 +08:00
endef
CONFIGURE_ARGS += \
--disable-gui \
2019-11-27 23:31:49 -08:00
--enable-stacktrace=no \
--with-boost=$(STAGING_DIR)/usr
2019-06-11 18:51:44 +08:00
MAKE_VARS += \
INSTALL_ROOT="$(PKG_INSTALL_DIR)"
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
define Package/qbittorrent/conffiles
/etc/config/qbittorrent
2019-11-28 08:06:47 -08:00
endef
define Package/qbittorrent/install
2019-06-11 18:51:44 +08:00
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/qbittorrent-nox $(1)/usr/bin
endef
$(eval $(call BuildPackage,qbittorrent))