From c65f254caa7f5eb1ce33f13cf2a2b51f1efe77a7 Mon Sep 17 00:00:00 2001 From: Noel Kuntze Date: Sat, 7 Aug 2021 00:30:35 +0200 Subject: [PATCH] testing/kopano-webapp-spellchecker-languagepack-de-de: fix the ... custom unpack code to also extract into a new directory for other archive types other than tar.gz And also fix the source URL. --- .../APKBUILD | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/testing/kopano-webapp-spellchecker-languagepack-de-de/APKBUILD b/testing/kopano-webapp-spellchecker-languagepack-de-de/APKBUILD index 59680216ef9..cf7a1945e54 100644 --- a/testing/kopano-webapp-spellchecker-languagepack-de-de/APKBUILD +++ b/testing/kopano-webapp-spellchecker-languagepack-de-de/APKBUILD @@ -2,7 +2,7 @@ pkgname=kopano-webapp-spellchecker-languagepack-de-de pkgdesc="German (Germany) languagepack for kopano-webapp's spellchecker plugin" pkgver=2.0.1 -pkgrel=1 +pkgrel=2 # ppc64le, mips64 and riscv64 blocked by libmdbx -> kopano-core -> kopano-webapp arch="noarch !ppc64le !mips64 !riscv64" url="https://stash.kopano.io/projects/KWA/repos/spellchecker-languagepack-de-de/browse" @@ -12,7 +12,7 @@ depends="kopano-webapp-spellchecker" # kopano-core necessary for mapi php module makedepends="apache-ant openjdk8 kopano-webapp-src" source=" - kopano-webapp-spellchecker-languagepack-de-de-$pkgver.zip::https://stash.kopano.io/rest/api/latest/projects/KWA/repos/spellchecker-languagepack-de-de/archive?at=refs%2Ftags%2Fv$pkgver&format=tar.gz + kopano-webapp-spellchecker-languagepack-de-de-$pkgver.zip::https://stash.kopano.io/rest/api/latest/projects/KWA/repos/spellchecker-languagepack-de-de/archive?at=refs%2Ftags%2Fv$pkgver&format=zip " _pluginname="${pkgname//kopano-webapp-/}" @@ -47,23 +47,23 @@ unpack() { $gunzip -c "$s" | tar -C "$new_root_dir" -x ;; *.tar.bz2) msg "Unpacking $s..." - tar -C "$srcdir" -jxf "$s" ;; + tar -C "$new_root_dir" -jxf "$s" ;; *.tar.lz) msg "Unpacking $s..." - tar -C "$srcdir" --lzip -xf "$s" ;; + tar -C "$new_root_dir" --lzip -xf "$s" ;; *.tar.lzma) msg "Unpacking $s..." - unlzma -T 0 -c "$s" | tar -C "$srcdir" -x ;; + unlzma -T 0 -c "$s" | tar -C "$new_root_dir" -x ;; *.tar.xz) msg "Unpacking $s..." local threads_opt if [ "$(readlink -f "$(command -v unxz)")" != "/bin/busybox" ]; then threads_opt="--threads=0" fi - unxz $threads_opt -c "$s" | tar -C "$srcdir" -x ;; + unxz $threads_opt -c "$s" | tar -C "$new_root_dir" -x ;; *.zip) msg "Unpacking $s..." - unzip -n -q "$s" -d "$srcdir" ;; + unzip -n -q "$s" -d "$new_root_dir" ;; esac done } @@ -109,5 +109,5 @@ package() { fi } sha512sums=" -050c8dbd0b17323ae3b84ef5502ef6ff862e9835eba6ba4f9eb92bf8fe94a5e397ef308d4f090e1fa7555897741126234d882737398c4d2d65020af6486d0afe kopano-webapp-spellchecker-languagepack-de-de-2.0.1.zip +a40092d3a2f835d3c014734addebec9ec8e9dbba2a144d442c61f88e8d46b5cf9c29069feaeaff961813215ce800ec69567fdf9918fed9cdec57b25dd9a80465 kopano-webapp-spellchecker-languagepack-de-de-2.0.1.zip "