替换 qBittorrent 为 qBittorrentEE,修复小问题
This commit is contained in:
parent
f4ca5a2db1
commit
5563761152
|
@ -0,0 +1,60 @@
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=qBittorrent-Enhanced-Edition
|
||||||
|
PKG_VERSION:=4.3.3.10
|
||||||
|
PKG_RELEASE=1
|
||||||
|
|
||||||
|
PKG_SOURCE:=$(PKG_NAME)-release-$(PKG_VERSION).tar.gz
|
||||||
|
PKG_SOURCE_URL:=https://codeload.github.com/c0re100/qBittorrent-Enhanced-Edition/tar.gz/release-$(PKG_VERSION)?
|
||||||
|
PKG_HASH:=skip
|
||||||
|
|
||||||
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-release-$(PKG_VERSION)
|
||||||
|
|
||||||
|
PKG_LICENSE:=GPL-2.0+
|
||||||
|
PKG_LICENSE_FILES:=COPYING
|
||||||
|
|
||||||
|
PKG_BUILD_PARALLEL:=1
|
||||||
|
PKG_INSTALL:=1
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
define Package/$(PKG_NAME)
|
||||||
|
SUBMENU:=BitTorrent
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
TITLE:=bittorrent client programmed in C++ / Qt
|
||||||
|
URL:=https://github.com/c0re100/qBittorrent-Enhanced-Edition
|
||||||
|
DEPENDS:=+boost +libtorrent-rasterbar +python3 +qt5-core +qt5-network +qt5-sql +qt5-xml
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/$(PKG_NAME)/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
|
||||||
|
|
||||||
|
CONFIGURE_VARS += \
|
||||||
|
QT_QMAKE="$(TOOLCHAIN_DIR)/bin" \
|
||||||
|
PKG_CONFIG_PATH="$(TOOLCHAIN_DIR)/lib/pkgconfig"
|
||||||
|
|
||||||
|
CONFIGURE_ARGS += \
|
||||||
|
--disable-gui \
|
||||||
|
--enable-stacktrace=no \
|
||||||
|
--with-boost="$(STAGING_DIR)/usr"
|
||||||
|
|
||||||
|
MAKE_VARS += \
|
||||||
|
INSTALL_ROOT="$(PKG_INSTALL_DIR)"
|
||||||
|
|
||||||
|
define Build/Prepare
|
||||||
|
$(call Build/Prepare/Default)
|
||||||
|
$(SED) '/<context>/{:a;N;/<\/context>/!ba;/\/gui\//d}' `ls $(PKG_BUILD_DIR)/src/lang/qbittorrent_*.ts`
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/$(PKG_NAME)/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/qbittorrent-nox $(1)/usr/bin
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|
|
@ -34,8 +34,13 @@ Diy-Part1() {
|
||||||
ExtraPackages svn other luci-app-socat https://github.com/Lienol/openwrt-package/trunk
|
ExtraPackages svn other luci-app-socat https://github.com/Lienol/openwrt-package/trunk
|
||||||
ExtraPackages svn other luci-app-usb3disable https://github.com/immortalwrt/immortalwrt/trunk/package/ctcgfw
|
ExtraPackages svn other luci-app-usb3disable https://github.com/immortalwrt/immortalwrt/trunk/package/ctcgfw
|
||||||
ExtraPackages svn lean luci-app-kodexplorer https://github.com/immortalwrt/immortalwrt/trunk/package/lean
|
ExtraPackages svn lean luci-app-kodexplorer https://github.com/immortalwrt/immortalwrt/trunk/package/lean
|
||||||
ExtraPackages svn lean luci-app-filebrowser https://github.com/immortalwrt/immortalwrt/trunk/package/ctcgfw
|
ExtraPackages svn other luci-app-filebrowser https://github.com/immortalwrt/immortalwrt/trunk/package/ctcgfw
|
||||||
|
ExtraPackages svn other filebrowser https://github.com/immortalwrt/immortalwrt/trunk/package/ctcgfw
|
||||||
ExtraPackages svn lean luci-app-eqos https://github.com/immortalwrt/immortalwrt/trunk/package/ntlf9t
|
ExtraPackages svn lean luci-app-eqos https://github.com/immortalwrt/immortalwrt/trunk/package/ntlf9t
|
||||||
|
|
||||||
|
ExtraPackages svn lean luci-app-qbittorrent https://github.com/immortalwrt/immortalwrt/trunk/package/ctcgfw
|
||||||
|
rm -rf package/lean/qBittorrent
|
||||||
|
Replace_File Customize/qBittorrent-EE.mk package/lean/qBittorrent-Enhanced-Edition Makefile
|
||||||
}
|
}
|
||||||
|
|
||||||
Diy-Part2() {
|
Diy-Part2() {
|
||||||
|
|
|
@ -195,8 +195,10 @@ ExtraPackages() {
|
||||||
REPO_BRANCH=${5}
|
REPO_BRANCH=${5}
|
||||||
|
|
||||||
Mkdir package/${PKG_DIR}
|
Mkdir package/${PKG_DIR}
|
||||||
[ -d "package/${PKG_DIR}/${PKG_NAME}" ] && rm -rf package/${PKG_DIR}/${PKG_NAME}
|
if [ -d "package/${PKG_DIR}/${PKG_NAME}" ];then
|
||||||
echo "[$(date "+%H:%M:%S")] Removing old package [${PKG_NAME}] ..."
|
echo "[$(date "+%H:%M:%S")] Removing old package [${PKG_NAME}] ..."
|
||||||
|
rm -rf package/${PKG_DIR}/${PKG_NAME}
|
||||||
|
fi
|
||||||
[ -d "${PKG_NAME}" ] && rm -rf ${PKG_NAME}
|
[ -d "${PKG_NAME}" ] && rm -rf ${PKG_NAME}
|
||||||
Retry_Times=3
|
Retry_Times=3
|
||||||
while [ ! -f "${PKG_NAME}/Makefile" ]
|
while [ ! -f "${PKG_NAME}/Makefile" ]
|
||||||
|
|
Loading…
Reference in New Issue