mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-01 16:44:23 +08:00
🌴 Sync 2026-03-05 23:51:42
This commit is contained in:
1 parent
97c049ed0a
commit
0acff03804
14253 files changed
+3893239
No files matched your search
Executable
+73
@@ -0,0 +1,73 @@
|
||||
# Copyright (C) 2020-2022 Hyy2001X <https://github.com/Hyy2001X>
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=upx-static
|
||||
PKG_VERSION:=3.96
|
||||
PKG_RELEASE:=1
|
||||
|
||||
ifeq ($(ARCH),x86_64)
|
||||
PKG_ARCH:=amd64
|
||||
endif
|
||||
ifeq ($(ARCH),i386)
|
||||
PKG_ARCH:=i386
|
||||
endif
|
||||
ifeq ($(ARCH),mipsel)
|
||||
PKG_ARCH:=mipsel
|
||||
endif
|
||||
ifeq ($(ARCH),mips)
|
||||
PKG_ARCH:=mips
|
||||
endif
|
||||
ifeq ($(ARCH),armeb)
|
||||
PKG_ARCH:=armeb
|
||||
endif
|
||||
ifeq ($(ARCH),arm)
|
||||
PKG_ARCH:=arm
|
||||
endif
|
||||
ifeq ($(ARCH),arm64)
|
||||
PKG_ARCH:=arm64
|
||||
endif
|
||||
ifeq ($(ARCH),powerpc)
|
||||
PKG_ARCH:=powerpc
|
||||
endif
|
||||
ifeq ($(ARCH),powerpc64)
|
||||
PKG_ARCH:=powerpc64le
|
||||
endif
|
||||
|
||||
PKG_FILE:=upx-$(PKG_VERSION).tar.xz
|
||||
PKG_URL:=https://github.com/upx/upx/releases/download/v$(PKG_VERSION)/upx-$(PKG_VERSION)-$(PKG_ARCH)_linux.tar.xz
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
||||
PKG_HASH:=skip
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/$(PKG_NAME)
|
||||
SUBMENU:=Compression
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=UPX - The Ultimate Packer for eXecutables
|
||||
URL:=https://upx.github.io
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/description
|
||||
UPX - The Ultimate Packer for eXecutables
|
||||
endef
|
||||
|
||||
define Build/Prepare
|
||||
if [ ! -f $(DL_DIR)/$(PKG_FILE) ] ; then \
|
||||
wget -q $(PKG_URL) -O $(DL_DIR)/$(PKG_FILE); \
|
||||
fi
|
||||
rm -rf $(PKG_BUILD_DIR)
|
||||
mkdir -p $(PKG_BUILD_DIR)
|
||||
xz -d -c $(DL_DIR)/$(PKG_FILE) | tar -x -C $(PKG_BUILD_DIR)
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/install
|
||||
$(INSTALL_DIR) $(1)/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/upx-$(PKG_VERSION)-$(PKG_ARCH)_linux/upx $(1)/bin/upx
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
||||
Executable
+20
@@ -0,0 +1,20 @@
|
||||
## UPX - The Ultimate Packer for eXecutables
|
||||
------
|
||||
|
||||
```
|
||||
Usage: upx [-123456789dlthVL] [-qvfk] [-o file] file..
|
||||
|
||||
Commands:
|
||||
-1 compress faster -9 compress better
|
||||
-d decompress -l list compressed file
|
||||
-t test compressed file -V display version number
|
||||
-h give more help -L display software license
|
||||
Options:
|
||||
-q be quiet -v be verbose
|
||||
-oFILE write output to 'FILE'
|
||||
-f force compression of suspicious files
|
||||
-k keep backup files
|
||||
file.. executables to (de)compress
|
||||
|
||||
UPX comes with ABSOLUTELY NO WARRANTY; for details visit https://upx.github.io
|
||||
```
|
||||
Reference in new issue
Block a user