mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-29 13:55:13 +08:00
🏅 Sync 2026-06-15 22:09:15
This commit is contained in:
1 parent
d2ec4a48f6
commit
26e9df1a69
68 files changed
+2964
-918
No files matched your search
+17
-1
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=opera-proxy
|
||||
PKG_VERSION:=1.24.0
|
||||
PKG_RELEASE:=3
|
||||
PKG_RELEASE:=4
|
||||
|
||||
PKG_MAINTAINER:=Konstantine Shevlakov <shevlakov@132lan.ru>
|
||||
PKG_LICENSE:=MIT
|
||||
@@ -44,9 +44,24 @@ endif
|
||||
PKG_SOURCE_URL:=https://github.com/Alexey71/opera-proxy/releases/download/v$(PKG_VERSION)
|
||||
PKG_SOURCE:=opera-proxy.linux-$(GOARCH_SUFFIX)
|
||||
PKG_HASH:=skip
|
||||
PKG_BUILD_DEPENDS:=upx/host
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
UPX:=$(STAGING_DIR_HOST)/bin/upx
|
||||
UPX_AVAILABLE:=$(shell [ -x "$(UPX)" ] && echo yes || echo no)
|
||||
|
||||
ifeq ($(UPX_AVAILABLE),yes)
|
||||
define upxcompress
|
||||
@echo "Compressing $(1) with UPX..."
|
||||
$(UPX) --lzma --best $(1)
|
||||
endef
|
||||
else
|
||||
define upxcompress
|
||||
@echo "UPX not found at $(UPX), skipping compression"
|
||||
endef
|
||||
endif
|
||||
|
||||
define Package/opera-proxy
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
@@ -69,6 +84,7 @@ define Build/Prepare
|
||||
mkdir -p $(PKG_BUILD_DIR)
|
||||
$(CP) $(DL_DIR)/$(PKG_SOURCE) $(PKG_BUILD_DIR)/opera-proxy
|
||||
chmod +x $(PKG_BUILD_DIR)/opera-proxy
|
||||
$(call upxcompress,$(PKG_BUILD_DIR)/opera-proxy)
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
|
||||
Reference in new issue
Block a user