[arch-commits] Commit in upx/trunk (PKGBUILD)

Alexander Rødseth arodseth at archlinux.org
Tue Mar 24 21:26:10 UTC 2020


    Date: Tuesday, March 24, 2020 @ 21:26:09
  Author: arodseth
Revision: 603927

upgpkg: upx 3.96-2

Modified:
  upx/trunk/PKGBUILD

----------+
 PKGBUILD |   18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-24 21:20:30 UTC (rev 603926)
+++ PKGBUILD	2020-03-24 21:26:09 UTC (rev 603927)
@@ -6,31 +6,33 @@
 
 pkgname=upx
 pkgver=3.96
-pkgrel=1
+pkgrel=2
 pkgdesc='Extendable, high-performance executable packer for several executable formats'
 arch=(x86_64)
 url='https://github.com/upx/upx'
-license=(GPL2 custom)
-depends=(git ucl)
-makedepends=(perl)
+license=(custom GPL2)
+depends=(ucl)
+makedepends=(git perl)
 source=("git+$url#commit=d7ba31cab8ce8d95d2c10e88d2ec787ac52005ef") # v3.96
 sha256sums=('SKIP')
 
 prepare() {
-  cd "$pkgname"
+  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
 }
 
 build() {
-  make -C "$pkgname" \
+  make -C $pkgname \
+    CHECK_WHITESPACE=/bin/true \
     UPX_LZMA_VERSION=0x465 \
     UPX_LZMADIR="$srcdir" \
-    CHECK_WHITESPACE=/bin/true \
     all
 }
 
 package() {
-  cd "$pkgname"
+  cd $pkgname
   install -Dm755 src/upx.out "$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"



More information about the arch-commits mailing list