mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-29 23:15:13 +08:00
Update Makefile
This commit is contained in:
1 parent
95586b0866
commit
314ecc312d
1 file changed
+8
-1
+8
-1
@@ -16,7 +16,7 @@ PKG_MAINTAINER:=Anya Lin <hukk1996@gmail.com>
|
|||||||
PKG_LICENSE:=GPL-2.0
|
PKG_LICENSE:=GPL-2.0
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|
||||||
PKG_BUILD_DEPENDS:=golang/host
|
PKG_BUILD_DEPENDS:=golang/host upx/host
|
||||||
PKG_BUILD_PARALLEL:=1
|
PKG_BUILD_PARALLEL:=1
|
||||||
PKG_BUILD_FLAGS:=no-mips16
|
PKG_BUILD_FLAGS:=no-mips16
|
||||||
|
|
||||||
@@ -49,6 +49,13 @@ define Build/Prepare
|
|||||||
rm -f $(PKG_BUILD_DIR)/rules/logic_test/logic_test.go
|
rm -f $(PKG_BUILD_DIR)/rules/logic_test/logic_test.go
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Build/Compile
|
||||||
|
$(call GoPackage/Build/Compile)
|
||||||
|
ifneq ($(filter arm mipsel mips,$(ARCH)),)
|
||||||
|
$(STAGING_DIR_HOST)/bin/upx --lzma --best $(GO_PKG_BUILD_BIN_DIR)/mihomo
|
||||||
|
endif
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/mihomo/install
|
define Package/mihomo/install
|
||||||
$(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
|
$(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
|
||||||
$(CURDIR)/.prepare.sh $(VERSION) $(CURDIR) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME)
|
$(CURDIR)/.prepare.sh $(VERSION) $(CURDIR) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME)
|
||||||
|
|||||||
Reference in new issue
Block a user