You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
2.0 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-qbittorrent
PKG_VERSION:=1.0.7
PKG_RELEASE:=1
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
SECTION:=luci
CATEGORY:=LuCI
SUBMENU:=3. Applications
TITLE:=qBittorrent Luci Application bundled with specific Qbittorrent x86 dependencies
DEPENDS:=+libstdcpp +luci-compat +libQt6Xml +libQt6Sql +libQt6Network +libQt6Core +libopenssl +boost-system +boost +zlib +rblibtorrent +qt6-plugin-libqsqlite +qt6-plugin-libqopensslbackend +qBittorrent +libpcre
endef
define Package/$(PKG_NAME)/description
qBittorrent Luci is an all-in-one installer for Qbittorrent on x86 with custom dependencies
endef
define Build/Prepare
$(foreach ipk,$(wildcard $(CURDIR)/files/*.ipk),$(CP) $(ipk) $(PKG_BUILD_DIR);)
endef
define Build/Compile
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_DIR) $(1)/tmp
$(INSTALL_DIR) $(1)/etc
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/view/qbittorrent
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/model/cbi
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_DIR) $(1)/usr/share/rpcd/acl.d/
$(INSTALL_BIN) ./files/etc/config/qbittorrent $(1)/etc/config/qbittorrent
$(INSTALL_BIN) ./files/etc/init.d/qbittorrent $(1)/etc/init.d/qbittorrent
$(INSTALL_BIN) ./files/etc/uci-defaults/80_qbittorrent $(1)/etc/uci-defaults/80_qbittorrent
$(INSTALL_DATA) ./files/usr/lib/lua/luci/model/cbi/qbittorrent.lua $(1)/usr/lib/lua/luci/model/cbi/qbittorrent.lua
$(INSTALL_DATA) ./files/usr/lib/lua/luci/controller/qbittorrent.lua $(1)/usr/lib/lua/luci/controller/qbittorrent.lua
$(INSTALL_DATA) ./files/usr/share/rpcd/acl.d/luci-app-qbittorrent.json $(1)/usr/share/rpcd/acl.d/luci-app-qbittorrent.json
$(INSTALL_DATA) ./files/usr/lib/lua/luci/view/qbittorrent/qbittorrent_status.htm $(1)/usr/lib/lua/luci/view/qbittorrent/qbittorrent_status.htm
endef
$(eval $(call BuildPackage,$(PKG_NAME)))