Date: Monday, October 31, 2022 @ 22:09:28
  Author: arodseth
Revision: 1339899

archrelease: copy trunk to community-x86_64

Added:
  upx/repos/community-x86_64/PKGBUILD
    (from rev 1339898, upx/trunk/PKGBUILD)
Deleted:
  upx/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   80 ++++++++++++++++++++++++++++---------------------------------
 1 file changed, 38 insertions(+), 42 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-31 22:09:22 UTC (rev 1339898)
+++ PKGBUILD    2022-10-31 22:09:28 UTC (rev 1339899)
@@ -1,42 +0,0 @@
-# Maintainer: Alexander F. Rødseth <[email protected]>
-# Contributor: Lukas Fleischer <[email protected]>
-# Contributor: Allan McRae <[email protected]>
-# Contributor: bekks <[email protected]>
-# Contributor: Daniel J Griffiths <[email protected]>
-
-pkgname=upx
-pkgver=3.96
-pkgrel=3
-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')
-
-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
-}
-
-build() {
-  make -C $pkgname \
-    CHECK_WHITESPACE=/bin/true \
-    UPX_LZMA_VERSION=0x465 \
-    UPX_LZMADIR="$srcdir" \
-    CXXFLAGS_WERROR="" \
-    all
-}
-
-package() {
-  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"
-}
-
-# vim: ts=2 sw=2 et:

Copied: upx/repos/community-x86_64/PKGBUILD (from rev 1339898, 
upx/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-10-31 22:09:28 UTC (rev 1339899)
@@ -0,0 +1,38 @@
+# Maintainer: Alexander F. Rødseth <[email protected]>
+# Contributor: Lukas Fleischer <[email protected]>
+# Contributor: Allan McRae <[email protected]>
+# Contributor: bekks <[email protected]>
+# Contributor: Daniel J Griffiths <[email protected]>
+
+pkgname=upx
+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)
+makedepends=(cmake git perl setconf)
+source=("git+$url#commit=69ca635c4c0ba474e9ca583dbb42e3d028c4533a") # v4.0.0
+b2sums=(SKIP)
+
+prepare() {
+  cd $pkgname
+  git submodule update --init --recursive
+  # upx believes this is not a release version if the git revision is set
+  setconf src/main.cpp 'bool warn' 'false;'
+}
+
+build() {
+  make -C $pkgname \
+    CHECK_WHITESPACE=/bin/true \
+    UPX_LZMA_VERSION=0x465 \
+    UPX_LZMADIR="$srcdir" \
+    CXXFLAGS_WERROR=""
+}
+
+package() {
+  cd $pkgname
+  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"
+}

Reply via email to