summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorml2021-01-17 00:25:40 +0100
committerml2021-01-17 00:25:40 +0100
commitf6bdd9101a609098eace08b486fd8844001a6f24 (patch)
tree84996a6d6ffb146f3b23c5a282f1484a8404a7c6 /PKGBUILD
parent529815455115bba0fb76a56e43a718e7da586858 (diff)
downloadaur-kubectl-split-yaml.tar.gz
updpkg: kubectl-split-yaml 0.1.0-4
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD7
1 files changed, 5 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 618746da95d..9ba69ea9882 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: ml <ml visu.li>
pkgname=kubectl-split-yaml
pkgver=0.1.0
-pkgrel=3
+pkgrel=4
pkgdesc='Split Kubernetes YAML output into one file per resource'
arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64')
url='https://github.com/nathforge/kubectl-split-yaml'
@@ -30,6 +30,9 @@ check() {
package() {
cd "$pkgname-$pkgver"
- install -Dm755 "$pkgname" -t "$pkgdir/usr/bin"
+ # plugin executables have to replace all but the first dash (-) with underscore
+ # this is a stupid solution, but it works for any amount of dashes in the plugin name
+ : "${pkgname//-/_}"
+ install -Dm755 "$pkgname" "$pkgdir/usr/bin/${_/_/-}"
install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
}