summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1d613468a4b087ea7810c3c5d9e106175b96e2ca (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
# Maintainer: Trevor Satori <trevor@satoridigital.co>
pkgname=satori-kronos-git 
pkgver=0.1.0.r88.64a4e7b
pkgrel=1
url="https://github.com/TrevorSatori/kronos.git"
pkgdesc="A Lightweight Terminal Music Player For Offline Listening"
arch=('x86_64')
url="https://github.com/TrevorSatori/kronos"
license=('GPL3')
depends=('alsa-lib') 
makedepends=('rust' 'cargo' 'git') 
provides=("${pkgname%-git}")
source=("$pkgname::git+$url")
md5sums=('SKIP')
name=kronos-git

pkgver() {
	cd $pkgname
	printf "%s.r%s.%s" "$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
		RUSTUP_TOOLCHAIN=stable cargo build --release --all-features --manifest-path=$pkgname/Cargo.toml --target-dir=target
}

package() {
	install -Dm755 "target/release/${name%-git}" -t "$pkgdir/usr/bin"
}