blob: 01f72c25d47688eb15ebc137b40a77b7610176f2 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: Carl Smedstad <carl.smedstad at protonmail dot com>
pkgname=jfrog-cli-bin
_pkgname=jfrog-cli
pkgver=2.46.3
pkgrel=1
pkgdesc="Simple interface to Artifactory, Bintray and Mission Control"
arch=(x86_64 i686 armv7h aarch64)
url="https://github.com/jfrog/jfrog-cli"
license=(Apache)
conflicts=(jfrog-cli)
provides=(jfrog-cli)
_artifact_name="$pkgname-$pkgver-$pkgrel.jfrog"
_source_base="$_artifact_name::https://releases.jfrog.io/artifactory/$_pkgname/v2-jf/$pkgver"
source_x86_64=("$_source_base/$_pkgname-linux-amd64/jf")
source_i686=("$_source_base/$_pkgname-linux-386/jf")
source_armv7h=("$_source_base/$_pkgname-linux-arm/jf")
source_aarch64=("$_source_base/$_pkgname-linux-arm64/jf")
noextract=("$_artifact_name")
sha256sums_x86_64=('8f3adf46d717ff42f8052b83de4c50f9a9afa5725f9d22dceb127ada62edf198')
sha256sums_i686=('55e7043362de141f99ad667f4c83a01c808bb132068c6b640a55ae157361a7ca')
sha256sums_armv7h=('d2f1173475c4d3027785bf470c36661dcb6821722b6196ec76dfb437a66b5683')
sha256sums_aarch64=('d5740826531236a4fc20d7b5b1a1036d27126ec9589e7b272eb50ac0de3d7cc1')
_archive="$pkgname-$pkgver"
prepare() {
mkdir -p "$_archive"
mv "$_artifact_name" "$_archive/jfrog"
}
build() {
cd "$_archive"
chmod u+x jfrog
./jfrog completion bash > jfrog.bash
./jfrog completion fish > jfrog.fish
./jfrog completion zsh > jfrog.zsh
}
package() {
cd "$_archive"
install -Dm755 jfrog "$pkgdir/usr/bin/jfrog"
ln -rs "$pkgdir/usr/bin/jfrog" "$pkgdir/usr/bin/jf"
install -Dm644 jfrog.bash "$pkgdir/usr/share/bash-completion/completions/jfrog"
install -Dm644 jfrog.fish "$pkgdir/usr/share/fish/vendor_completions.d/jfrog.fish"
install -Dm644 jfrog.zsh "$pkgdir/usr/share/zsh/site-functions/_jfrog"
install -Dm644 jfrog.bash "$pkgdir/usr/share/bash-completion/completions/jf"
install -Dm644 jfrog.fish "$pkgdir/usr/share/fish/vendor_completions.d/jf.fish"
install -Dm644 jfrog.zsh "$pkgdir/usr/share/zsh/site-functions/_jf"
}
|