From f43a8aa1a29fb78d8ab5344b2ddba4c3b18b4469 Mon Sep 17 00:00:00 2001 From: Mateusz Sylwestrzak Date: Sat, 25 Jul 2026 18:52:54 +0200 Subject: [PATCH] unar: update to 1.10.8, fix distfiles --- srcpkgs/unar/template | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/srcpkgs/unar/template b/srcpkgs/unar/template index ebc0c39b1b31a4..dc36fe48849cb9 100644 --- a/srcpkgs/unar/template +++ b/srcpkgs/unar/template @@ -1,7 +1,8 @@ # Template file for 'unar' pkgname=unar -version=1.10.7 -revision=16 +version=1.10.8 +revision=1 +_ud_ver=1.1 build_wrksrc="XADMaster" build_style=gnu-makefile make_use_env="yes" @@ -12,13 +13,24 @@ short_desc="Unarchiver for a variety of file formats" maintainer="Orphaned " license="LGPL-2.1-or-later" homepage="https://theunarchiver.com/command-line" -distfiles="https://github.com/MacPaw/unar/archive/v${version}.tar.gz" -checksum=6ab8f01f7db8bc88e6e8e08a1d79fb7ef8e9fb1d940c748d0a329a2d6d331016 +changelog="https://github.com/MacPaw/XADMaster/releases" +distfiles="https://github.com/MacPaw/XADMaster/archive/refs/tags/v${version}.tar.gz + https://github.com/MacPaw/universal-detector/archive/refs/tags/${_ud_ver}.tar.gz>universal-detector-${_ud_ver}.tar.gz" +checksum="652953d7988b3c33f4f52b61c357afd1a7c2fc170e5e6e2219f4432b0c4cd39f + 8e8532111d0163628eb828a60d67b53133afad3f710b1967e69d3b8eee28a811" make_check=no # Doesn't have any tests. nocross="objc doesn't get cross build at present within gcc (as seen in gnustep)" post_extract() { - vsed -i -e '/-D_NATIVE_OBJC_EXCEPTIONS/d' ${wrksrc}/*/Makefile.linux + mv XADMaster-${version} XADMaster + mv universal-detector-${_ud_ver} UniversalDetector + vsed -i XADMaster/Makefile.linux UniversalDetector/Makefile.linux \ + -e '/-D_NATIVE_OBJC_EXCEPTIONS/d' + + # tag version v1.10.8 still identifies as v1.10.7 + vsed -i XADMaster/unar.m XADMaster/lsar.m \ + -e "s/v1\\.10\\.7/v${version}/" + if [ "$XBPS_TARGET_LIBC" = musl ]; then # This a copy of glibc's regex, also LGPL-2.1-or-later cp XADMaster/Windows/include/regex.h XADMaster/xad_regex.h