summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8ffae629ee4eb39592e325fa89e64aa30643de8e (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
# Maintainer: Christian Duerr <contact@christianduerr.com>
pkgname=rum-git
pkgver=0.1.0.r14.g3c3733c
pkgrel=1
pkgdesc='Rust Userstyle Manager'
arch=('i686' 'x86_64')
url='https://github.com/chrisduerr/rum'
license=('GPL3')
makedepends=('cargo' 'git')
source=("git+$url")
sha256sums=('SKIP')

pkgver() {
	cd "${pkgname%-*}"
	echo $(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).r$(git rev-list --count HEAD).g$(git describe --always)
}

build() {
	cd "${pkgname%-*}"
	cargo build --release
}

package() {
	cd "${pkgname%-*}"
	install -Dm755 target/release/rum "$pkgdir/usr/bin/rum"
}