summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChristian Dürr2017-09-02 01:20:25 +0200
committerChristian Dürr2017-09-02 01:20:25 +0200
commit38ec787d481b163eb15964084603ebd52fb5e9ab (patch)
tree3ca44ddbe33722c2103df9cd469d3342baf3e76a /PKGBUILD
downloadaur-rum-git.tar.gz
Add PKGBUILD and SRCINFO for git repo
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD26
1 files changed, 26 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8ffae629ee4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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"
+}