Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions srcpkgs/unar/template
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -12,13 +13,24 @@ short_desc="Unarchiver for a variety of file formats"
maintainer="Orphaned <orphan@voidlinux.org>"
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
Expand Down