blob: dcd7b91e196cf27c8f46e37171783c19b3f8a24f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Maintainer: Andrej Marolt <andrej.marolt@gmail.com>
pkgname=openshift-source-to-image
_release=v1.1.12
_commit=2a783420
pkgver=1.1.12
pkgrel=1
pkgdesc="A tool for building artifacts from source and injecting into docker images"
arch=('i686' 'x86_64')
url="https://github.com/openshift/source-to-image"
license=('Apache')
source=("https://github.com/openshift/source-to-image/releases/download/${_release}/source-to-image-${_release}-${_commit}-linux-amd64.tar.gz")
md5sums=('43aa626f3acb151d5ef3d0075056816e')
build() {
echo "Installing source-to-image"
$srcdir/s2i completion bash > $srcdir/s2i.bash
$srcdir/s2i completion zsh > $srcdir/s2i.zsh
# Fix zsh completion
sed -i '1i#compdef s2i' $srcdir/s2i.zsh
}
package() {
# completions
install -D -m644 $srcdir/s2i.bash $pkgdir/usr/share/bash-completion/completions/s2i
install -D -m644 $srcdir/s2i.zsh $pkgdir/usr/share/zsh/site-functions/_s2i
# package
install -D -m755 $srcdir/s2i $pkgdir/usr/bin/s2i
ln -s s2i $pkgdir/usr/bin/sti
}
|