summaryrefslogtreecommitdiff
path: root/repo/upx
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-05-17 17:01:27 +0100
committerdavidovski <david@davidovski.xyz>2023-05-17 17:01:27 +0100
commit0d37a1ef234c38b27faba43bc3a22f985d311deb (patch)
treedde8df9f508e7323c3d7df599ceade7705c40acd /repo/upx
parentf29d569cd33a73da5ad675f43a34ad53c5cc9bc6 (diff)
Remove all firmware
Diffstat (limited to 'repo/upx')
-rw-r--r--repo/upx/upx.xibuild28
1 files changed, 28 insertions, 0 deletions
diff --git a/repo/upx/upx.xibuild b/repo/upx/upx.xibuild
new file mode 100644
index 0000000..a23e930
--- /dev/null
+++ b/repo/upx/upx.xibuild
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+NAME="upx"
+DESC="The Ultimate Packer for eXecutables"
+
+MAKEDEPS=" cmake ninja"
+
+PKG_VER=4.0.2
+SOURCE="https://github.com/upx/upx/releases/download/v$PKG_VER/upx-$PKG_VER-src.tar.xz"
+
+build() {
+ cmake -B build -G Ninja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DUPX_CONFIG_DISABLE_WERROR=ON \
+ -DUPX_CONFIG_DISABLE_SANITIZE=ON \
+ -DUPX_CONFIG_DISABLE_GITREV=ON
+ cmake --build build
+}
+
+check() {
+ ctest --test-dir build --output-on-failure
+}
+
+package() {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
+