diff options
author | prspkt <prspkt@protonmail.com> | 2019-03-23 10:33:06 +0200 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-03-23 15:37:13 +0000 |
commit | acf898a9681bdeeca3f758781db92236f8bca873 (patch) | |
tree | 6a5c12a1e6edfff8517d3c4dd9e2ad14e50bbe88 /testing/skim | |
parent | 985780d336a595bbba269e8d1c32715d70dbee68 (diff) | |
download | aports-acf898a9681bdeeca3f758781db92236f8bca873.tar.bz2 aports-acf898a9681bdeeca3f758781db92236f8bca873.tar.xz |
testing/skim: add subpkg descriptions
- make subpkg installation conditional `install_if=`
- fix target installation paths for bash/zsh completions
Diffstat (limited to 'testing/skim')
-rw-r--r-- | testing/skim/APKBUILD | 63 |
1 files changed, 48 insertions, 15 deletions
diff --git a/testing/skim/APKBUILD b/testing/skim/APKBUILD index 012b3de015..23f73a8c35 100644 --- a/testing/skim/APKBUILD +++ b/testing/skim/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Chloe Kudryavtsev <toast@toastin.space> pkgname=skim pkgver=0.6.2 -pkgrel=0 +pkgrel=1 pkgdesc="Fuzzy finder in rust" url="https://github.com/lotabout/skim" arch="x86_64" # limited by rust/cargo @@ -45,42 +45,75 @@ package() { install -Dm644 plugin/skim.vim -t "$pkgdir"/usr/share/vim/vimfiles/plugin - install -Dm644 shell/completion.bash "$pkgdir"/usr/share/bash-completions/completions/sk - install -Dm644 shell/completion.zsh "$pkgdir"/usr/share/zsh/site-finctions/_sk + install -Dm644 shell/completion.bash "$pkgdir"/usr/share/bash-completion/completions/sk + install -Dm644 shell/completion.zsh "$pkgdir"/usr/share/zsh/site-functions/_sk install -Dm644 shell/key-bindings.* -t "$pkgdir"/usr/share/"$pkgname" } vim() { - install -d "$subpkgdir"/usr/share + depends="" + pkgdesc="Vim plugin for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel vim" + + mkdir -p "$subpkgdir"/usr/share mv "$pkgdir"/usr/share/vim "$subpkgdir"/usr/share } tmux() { - install -d "$subpkgdir"/usr/bin + depends="bash" + pkgdesc="tmux launcher for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel tmux" + + mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/sk-tmux "$subpkgdir"/usr/bin } bash() { - install -d "$subpkgdir"/usr/share - mv "$pkgdir"/usr/share/bash-completions "$subpkgdir"/usr/share + depends="" + pkgdesc="Bash completion for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel bash-completion" + + mkdir -p "$subpkgdir"/usr/share/bash-completion/completions + mv "$pkgdir"/usr/share/bash-completion/completions/* \ + "$subpkgdir"/usr/share/bash-completion/completions } + zsh() { - install -d "$subpkgdir"/usr/share - mv "$pkgdir"/usr/share/zsh "$subpkgdir"/usr/share + depends="" + pkgdesc="Zsh completion for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel zsh" + + mkdir -p "$subpkgdir"/usr/share/zsh/site-functions + mv "$pkgdir"/usr/share/zsh/site-functions/* \ + "$subpkgdir"/usr/share/zsh/site-functions } bashkey() { - install -d "$subpkgdir"/usr/share/"$pkgname" - mv "$pkgdir"/usr/share/"$pkgname"/key-bindings.bash "$subpkgdir"/usr/share/"$pkgname" + depends="" + pkgdesc="Bash key-bindings for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel bash" + + mkdir -p "$subpkgdir"/usr/share/skim + mv "$pkgdir"/usr/share/skim/key-bindings.bash "$subpkgdir"/usr/share/skim } + fishkey() { - install -d "$subpkgdir"/usr/share/"$pkgname" - mv "$pkgdir"/usr/share/"$pkgname"/key-bindings.fish "$subpkgdir"/usr/share/"$pkgname" + depends="" + pkgdesc="Fish key-bindings for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel fish" + + mkdir -p "$subpkgdir"/usr/share/skim + mv "$pkgdir"/usr/share/skim/key-bindings.fish "$subpkgdir"/usr/share/skim } + zshkey() { - install -d "$subpkgdir"/usr/share/"$pkgname" - mv "$pkgdir"/usr/share/"$pkgname"/key-bindings.zsh "$subpkgdir"/usr/share/"$pkgname" + depends="" + pkgdesc="Zsh key-bindings for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel zsh" + + mkdir -p "$subpkgdir"/usr/share/skim + mv "$pkgdir"/usr/share/skim/key-bindings.zsh "$subpkgdir"/usr/share/skim } sha512sums="47c89b9f6bdbbc3c470c4edb5b23fcf94165cb34ab7be4de6113b4eb4433d81064395c5495d2129c7877dd8ed3bea9067f1d2b965fd7683c39aec1bb070b7b3d skim-0.6.2.tar.gz" |