blob: b77617bccd62887162a061a06ec9c7df1e262f47 (
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
|
# Maintainer: Areskul <areskul@areskul.com>
pkgname="novops-git"
base="novops"
pkgrel=1
pkgver=0.7.0
pkgdesc="Cross-platform secret manager for development and CI environments"
arch=("any")
url="https://github.com/PierreBeucher/novops/"
license=('LGPL3')
depends=()
makedepends=(git make cargo)
provides=("novops-git")
conflicts=("novops")
source=(git+$url)
md5sums=('SKIP') #autofill using updpkgsums
build() {
cd $base
# Checkout to latest tag
tag=$(git describe --tags --abbrev=0)
git checkout $tag
cargo build --release
}
package() {
# Install the only binary
cd $base
bin="target/release/$base"
install -Dm755 $bin -t $pkgdir/usr/bin
}
pkgver() {
cd $base
git describe --tags --abbrev=0 | sed s/v//
}
|