blob: 7e5d23507fbc71cb98e28cad44d0f0fb1b5f841b (
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.48.0
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=('b9f13b04cbf8651e1a1f5dc23a5048af12f7a06bed127292bd54e947b40b093b')
sha256sums_i686=('6c60a71b4050fa875882c391fff9552b344027051bfae3356616a51bd2ef82ae')
sha256sums_armv7h=('99e0ac756e96af19c98474f6116b73d39ebb20bc19b423590723556bc4ce8955')
sha256sums_aarch64=('c29b4010c6464d6ede3bcc8309bf44942af857c8f4121deff377f5f4d3eaa2ec')
_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"
}
|