2006-12-05 06:27:04 +11:00
|
|
|
# Description: Ultimate Packer for eXecutables.
|
|
|
|
# URL: http://upx.sourceforge.net/
|
2023-08-06 20:19:45 +02:00
|
|
|
# Maintainer: unmaintained
|
2022-10-29 19:28:56 +00:00
|
|
|
# Depends on: lz4 ucl zlib
|
2006-12-05 06:27:04 +11:00
|
|
|
|
|
|
|
name=upx
|
2023-01-30 21:18:29 +01:00
|
|
|
version=4.0.2
|
2006-12-05 06:27:04 +11:00
|
|
|
release=1
|
2022-11-19 17:13:36 +00:00
|
|
|
source=(https://github.com/upx/upx/releases/download/v$version/upx-$version-src.tar.xz)
|
2006-12-05 06:27:04 +11:00
|
|
|
|
|
|
|
build() {
|
2023-08-06 20:19:45 +02:00
|
|
|
cmake -S $name-$version-src -B build -G Ninja \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
|
|
-D UPX_CONFIG_DISABLE_WERROR=ON \
|
|
|
|
-D UPX_CONFIG_DISABLE_SANITIZE=ON \
|
|
|
|
-D UPX_CONFIG_DISABLE_GITREV=ON \
|
|
|
|
-Wno-dev
|
2016-09-10 17:16:33 +10:00
|
|
|
|
2023-08-06 20:19:45 +02:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2022-11-12 21:24:52 +00:00
|
|
|
|
2023-08-06 20:19:45 +02:00
|
|
|
rm -r $PKG/usr/share/doc
|
2006-12-05 06:27:04 +11:00
|
|
|
}
|