From: Charles <c...@monocles.eu>

Unfortunately I had to add a prepare function to patch out the
-Werror flag using sed. Apart from that the package appears
to work just fine.
---
 PKGBUILD | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index ab0524b..14c55f6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
 # Maintainer: Evangelos Foutras <foutre...@archlinux.org>
 
 pkgname=7zip
-pkgver=24.09
-pkgrel=3
+pkgver=25.00
+pkgrel=1
 pkgdesc="File archiver for extremely high compression"
 arch=('x86_64')
 url="https://www.7-zip.org";
@@ -13,7 +13,12 @@ provides=('p7zip')
 conflicts=('p7zip')
 replaces=('p7zip')
 source=(https://7-zip.org/a/7z${pkgver//./}-src.tar.xz)
-sha256sums=('49c05169f49572c1128453579af1632a952409ced028259381dac30726b6133a')
+sha256sums=('bff9e69b6ca73a5b8715d7623870a39dc90ad6ce1f4d1070685843987af1af9b')
+
+prepare() {
+  cd "$srcdir"
+  sed -i 's/-Werror//g' CPP/7zip/7zip_gcc.mak
+}
 
 build() {
   local _platform_flags=()
-- 
2.50.1

Reply via email to