blob: f3ea3206078a2c73f383dfed147ca1ec9835979e (
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
|
# Maintainer: Jojii <jojii@gmx.net>
pkgname=rbuild-cli-git
pkgver=v1.0.0
pkgrel=1
epoch=
pkgdesc="The official cli client for the remote build system"
arch=('i686' 'x86_64')
url="https://github.com/JojiiOfficial/RemoteBuildClient"
license=('MIT')
groups=()
depends=()
makedepends=(
'git'
'go'
)
options=()
install=
changelog=
source=("git+$url")
md5sums=("SKIP")
pkgver() {
cd "$srcdir/RemoteBuildClient"
git describe --tags --abbrev=0 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$srcdir/RemoteBuildClient"
go get -v
}
build() {
cd "$srcdir/RemoteBuildClient"
go build -o rbuild
}
package() {
cd "$srcdir/RemoteBuildClient"
mkdir -p $pkgdir/usr/bin
install -DT rbuild $pkgdir/usr/bin/rbuild
}
|