Fixed makefiles

This commit is contained in:
gSpot
2021-12-17 17:01:46 +03:00
parent fdb3572f63
commit 6756bbc2df
4 changed files with 54 additions and 54 deletions
+13 -13
View File
@@ -8,32 +8,32 @@ PKG_NAME:=ruantiblock-mod-py
PKG_VERSION:=0.9.1
PKG_RELEASE:=1
PKG_MAINTAINER:=gSpot <https://github.com/gSpotx2f/ruantiblock_openwrt>
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
SECTION:=net
CATEGORY:=Network
TITLE:=Python module for ruantiblock
URL:=https://github.com/gSpotx2f/ruantiblock_openwrt
PKGARCH:=all
DEPENDS:=+ruantiblock +python3 +python3-setuptools +python3-openssl
SECTION:=net
CATEGORY:=Network
TITLE:=Python module for ruantiblock
URL:=https://github.com/gSpotx2f/ruantiblock_openwrt
PKGARCH:=all
DEPENDS:=+ruantiblock +python3 +python3-setuptools +python3-openssl
endef
define Package/$(PKG_NAME)/description
endef
define Build/Prepare
$(CP) -r ./files $(PKG_BUILD_DIR)/files
define Build/Configure
endef
define Build/Compile
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/libexec/ruantiblock
$(INSTALL_BIN) $(PKG_BUILD_DIR)/files/usr/libexec/ruantiblock/ruab_parser.py $(1)/usr/libexec/ruantiblock/ruab_parser.py
$(INSTALL_DIR) $(1)/usr/lib/python3.7
$(INSTALL_DATA) $(PKG_BUILD_DIR)/files/usr/lib/python3.7/ruab_sum_ip.py $(1)/usr/lib/python3.7/ruab_sum_ip.py
$(INSTALL_BIN) ./files/usr/libexec/ruantiblock/ruab_parser.py $(1)/usr/libexec/ruantiblock/ruab_parser.py
$(INSTALL_DIR) $(1)/usr/lib/python3.9
$(INSTALL_DATA) ./files/usr/lib/python3.9/ruab_sum_ip.py $(1)/usr/lib/python3.9/ruab_sum_ip.py
endef
$(eval $(call BuildPackage,$(PKG_NAME)))