contrib/upx/Pkgfile

28 lines
728 B
Plaintext
Raw Normal View History

2006-12-04 20:27:04 +01:00
# Description: Ultimate Packer for eXecutables.
# URL: http://upx.sourceforge.net/
2023-08-06 20:19:45 +02:00
# Maintainer: unmaintained
2022-10-29 21:28:56 +02:00
# Depends on: lz4 ucl zlib
2006-12-04 20:27:04 +01:00
name=upx
2023-01-30 21:18:29 +01:00
version=4.0.2
2006-12-04 20:27:04 +01:00
release=1
2022-11-19 18:13:36 +01:00
source=(https://github.com/upx/upx/releases/download/v$version/upx-$version-src.tar.xz)
2006-12-04 20:27:04 +01: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 09:16:33 +02:00
2023-08-06 20:19:45 +02:00
cmake --build build
DESTDIR=$PKG cmake --install build
2022-11-12 22:24:52 +01:00
2023-08-06 20:19:45 +02:00
rm -r $PKG/usr/share/doc
2006-12-04 20:27:04 +01:00
}