aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2022-06-23 05:36:48 +0000
committerpsykose <alice@ayaya.dev>2022-06-23 07:36:48 +0200
commitf04a10d9ccf771be4d2b3537fb097d79175cd979 (patch)
tree53c6c29a34e7f80d80d09ab242d5b9a5102d55d2
parent171060415e4004738c205ca861f29f0ad7e9556f (diff)
downloadaports-f04a10d9ccf771be4d2b3537fb097d79175cd979.tar.gz
aports-f04a10d9ccf771be4d2b3537fb097d79175cd979.tar.bz2
aports-f04a10d9ccf771be4d2b3537fb097d79175cd979.tar.xz
main/parallel: upgrade to 20220622
-rw-r--r--main/parallel/APKBUILD18
-rw-r--r--main/parallel/completion-dir.patch18
2 files changed, 31 insertions, 5 deletions
diff --git a/main/parallel/APKBUILD b/main/parallel/APKBUILD
index d09724310a..cb4cbeb8c6 100644
--- a/main/parallel/APKBUILD
+++ b/main/parallel/APKBUILD
@@ -1,16 +1,23 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
pkgname=parallel
-pkgver=20220522
+pkgver=20220622
pkgrel=0
pkgdesc="Shell tool for executing jobs in parallel"
arch="noarch"
url="https://www.gnu.org/software/parallel"
license="GPL-3.0-or-later"
options="!check" # Test suite not part of src pkg
-depends="perl"
-subpackages="$pkgname-doc"
-source="https://ftp.gnu.org/gnu/parallel/parallel-$pkgver.tar.bz2"
+depends="autoconf automake perl"
+subpackages="$pkgname-doc $pkgname-bash-completion $pkgname-zsh-completion"
+source="https://ftp.gnu.org/gnu/parallel/parallel-$pkgver.tar.bz2
+ completion-dir.patch
+ "
+
+prepare() {
+ default_prepare
+ autoreconf -fvi
+}
build() {
./configure \
@@ -28,5 +35,6 @@ package() {
}
sha512sums="
-45dd1abe8652d29cd054505263b4ed792f42d7d6799ebdbfec07c21d54437d7243a054adff1d6c987eb85260d7ead2a9bb4dacb9d54a8a5b332218e27cf4f62c parallel-20220522.tar.bz2
+d01d86cd2ac373534d147eee8aa666fe26e7207362ea9c036c3744125f72c936d15cf2059429636454f21c8e8c6b3a60c8d761ddfde97ba7388d2cd00495bfa4 parallel-20220622.tar.bz2
+9c44648d220d2c9eb15e5d0dca25f0a62091f8f9e1233df04d31639c7833ddc1d60a654a261b352a37894f4ed445f5c26ce39cbe145982cfc95991ad873de0fc completion-dir.patch
"
diff --git a/main/parallel/completion-dir.patch b/main/parallel/completion-dir.patch
new file mode 100644
index 0000000000..1d93fc62f9
--- /dev/null
+++ b/main/parallel/completion-dir.patch
@@ -0,0 +1,18 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -167,12 +167,12 @@
+ cd parallel-$(YYYYMMDD) && \
+ ./configure && make -j && sudo make -j install
+
+-zshcompletiondir=${datarootdir}/zsh/site-functions
++zshcompletiondir=${DESTDIR}/${datarootdir}/zsh/site-functions
+ zshcompletion=${zshcompletiondir}/_parallel
+ install-data-hook:
+- mkdir -p ${datarootdir}/bash-completion/completions
++ mkdir -p ${DESTDIR}/${datarootdir}/bash-completion/completions
+ mkdir -p ${zshcompletiondir}
+- parallel --shell-completion bash > ${datarootdir}/bash-completion/completions/parallel
++ ./src/parallel --shell-completion bash > ${DESTDIR}/${datarootdir}/bash-completion/completions/parallel
+ echo '#compdef parallel' > ${zshcompletion}
+ echo '(( $$+functions[_comp_parallel] )) ||' >> ${zshcompletion}
+ echo ' eval "$$(parallel --shell-completion auto)" &&' >> ${zshcompletion}