diff options
author | Noel Kuntze <noel.kuntze@thermi.consulting> | 2021-08-07 00:33:20 +0200 |
---|---|---|
committer | Ariadne Conill <ariadne@dereferenced.org> | 2021-08-07 01:18:35 +0000 |
commit | 82a0586fec52d8cc2f79a3dc02596f7edb5a2996 (patch) | |
tree | 628b2cc76f9d6673281dbb87debb80c9ba7c8d3b | |
parent | 07a64d002a2efcfd348183b5ad4ee5c2f5360742 (diff) | |
download | aports-82a0586fec52d8cc2f79a3dc02596f7edb5a2996.zip |
testing/kopano-webapp-spellchecker-languagepack-fr-fr: 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.
-rw-r--r-- | testing/kopano-webapp-spellchecker-languagepack-fr-fr/APKBUILD | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/testing/kopano-webapp-spellchecker-languagepack-fr-fr/APKBUILD b/testing/kopano-webapp-spellchecker-languagepack-fr-fr/APKBUILD index 1825a898919..c506296ea52 100644 --- a/testing/kopano-webapp-spellchecker-languagepack-fr-fr/APKBUILD +++ b/testing/kopano-webapp-spellchecker-languagepack-fr-fr/APKBUILD @@ -2,7 +2,7 @@ pkgname=kopano-webapp-spellchecker-languagepack-fr-fr pkgdesc="French (France) 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-fr-fr/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-fr-fr-$pkgver.zip::https://stash.kopano.io/rest/api/latest/projects/KWA/repos/spellchecker-languagepack-fr-fr/archive?at=refs%2Ftags%2Fv$pkgver&format=tar.gz + kopano-webapp-spellchecker-languagepack-fr-fr-$pkgver.zip::https://stash.kopano.io/rest/api/latest/projects/KWA/repos/spellchecker-languagepack-fr-fr/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 } @@ -105,5 +105,5 @@ package() { fi } sha512sums=" -e590bc098399c6045c2b56d42e1ee6581e9c136c759b101c5ba5afc3269abb0abff339df52b948c42e7edbbd1c7a35f136f850f039dd1dce1a29100796f329f8 kopano-webapp-spellchecker-languagepack-fr-fr-2.0.1.zip +0e54c2fcc749a946c8c82d2b445cb85692a79109ae7ff7ab94c5c2c186bf6902b085fb3061beb596045d988e6145c45e202323d1af9b05220d50224a3fc4f36c kopano-webapp-spellchecker-languagepack-fr-fr-2.0.1.zip " |