blob: 2773d0173f57df3ff62134144398e03f7ffb996f (
plain)
1 # Description: Ultimate Packer for eXecutables.
2 # URL: http://upx.sourceforge.net/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: lz4 ucl zlib
5
6 name=upx
7 version=4.0.0
8 release=1
9 source=(https://github.com/upx/upx/releases/download/v$version/upx-$version-src.tar.xz
10 system-deps.patch)
11
12 build() {
13 patch -Np1 -d $name-$version-src -i $SRC/system-deps.patch
14 rm -rf $name-$version-src/vendor/ucl
15
16 cmake -S $name-$version-src -B build -G Ninja \
17 -D CMAKE_INSTALL_PREFIX=/usr \
18 -D CMAKE_INSTALL_LIBDIR=lib \
19 -D CMAKE_BUILD_TYPE=Release \
20 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
21 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
22 -Wno-dev
23
24 cmake --build build
25 DESTDIR=$PKG cmake --install build
26
27 rm -r $PKG/usr/share/doc
28 }
|