summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7cc5445434a1b08f75ae6b84a8a867367ed79c5f (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
# Maintainer: rv178

_pkgname=baker
pkgname="${_pkgname}-git"
pkgver=1.0.0.32.g508b2f6
pkgrel=1
pkgdesc="A simple build automation tool."
arch=("x86_64")
url="https://github.com/rv178/baker"
license=("MIT")
makedepends=("rustup" "git")
source=("${_pkgname}::git+${url}.git")
sha256sums=("SKIP")

pkgver() {
	cd $_pkgname
	echo "$(grep "^version =" Cargo.toml|head -n1|cut -d\" -f2|cut -d\- -f1).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}

build() {
	cd "$_pkgname"
	rustup install stable
	rustup default stable
	cargo build --release
}

package() {
	cd "$_pkgname"
	install -Dm 755 ./target/release/bake "$pkgdir/usr/bin/bake"
	install -Dm 644 ./docs/*.1 -t "$pkgdir/usr/share/man/man1/"
}