summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7006be357af5f00c6038c0ab25e6bab1301a7727 (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
# Maintainer: Jaco Malan <jacom@codelog.co.za>

pkgbase=vertebrae-git
pkgname=vertebrae-git
pkgver=0.1.0.r0.gf7432fd
pkgrel=2
pkgdesc="A configurable, automatic backup management utility written in Rust."
arch=('x86_64')
url="https://github.com/JacoMalan1/vertebrae"
license=('GPL-3.0-or-later')
depends=()
makedepends=('cargo' 'git')
provides=('vertebrae')
conflicts=('vertebrae')
source=("$pkgbase::git+https://github.com/JacoMalan1/vertebrae.git")
sha256sums=('SKIP')

pkgver() {
	cd "$pkgbase"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$srcdir/$pkgbase"
  CARGO_TARGET_DIR=./target cargo build --frozen --release
}

package() {
	mkdir -p "$pkgdir/usr/bin"
	mkdir -p "$pkgdir/usr/lib/systemd/system/"
	cp "$srcdir/$pkgbase/target/release/vertebraed" "$pkgdir/usr/bin"
	cp "$srcdir/../vertebraed@.service" "$pkgdir/usr/lib/systemd/system/"
}