Date: Monday, October 31, 2022 @ 22:09:22 Author: arodseth Revision: 1339898
upgpkg: upx 4.0.0-1 Modified: upx/trunk/PKGBUILD ----------+ PKGBUILD | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-10-31 22:08:30 UTC (rev 1339897) +++ PKGBUILD 2022-10-31 22:09:22 UTC (rev 1339898) @@ -5,22 +5,21 @@ # Contributor: Daniel J Griffiths <[email protected]> pkgname=upx -pkgver=3.96 -pkgrel=3 +pkgver=4.0.0 +pkgrel=1 pkgdesc='Extendable, high-performance executable packer for several executable formats' arch=(x86_64) url='https://github.com/upx/upx' license=(custom GPL2) -depends=(ucl) -makedepends=(git perl) -source=("git+$url#commit=d7ba31cab8ce8d95d2c10e88d2ec787ac52005ef") # v3.96 -sha256sums=('SKIP') +makedepends=(cmake git perl setconf) +source=("git+$url#commit=69ca635c4c0ba474e9ca583dbb42e3d028c4533a") # v4.0.0 +b2sums=(SKIP) prepare() { cd $pkgname git submodule update --init --recursive - # Disable a warning. upx believes this is not a release version if the git revision is set. - sed -i 's/bool warn = true/bool warn = false/' src/main.cpp + # upx believes this is not a release version if the git revision is set + setconf src/main.cpp 'bool warn' 'false;' } build() { @@ -28,15 +27,12 @@ CHECK_WHITESPACE=/bin/true \ UPX_LZMA_VERSION=0x465 \ UPX_LZMADIR="$srcdir" \ - CXXFLAGS_WERROR="" \ - all + CXXFLAGS_WERROR="" } package() { cd $pkgname - install -Dm755 src/upx.out "$pkgdir/usr/bin/upx" + install -Dm755 build/release/upx "$pkgdir/usr/bin/upx" install -Dm644 doc/upx.1 "$pkgdir/usr/share/man/man1/upx.1" install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } - -# vim: ts=2 sw=2 et:
