summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD26
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..71ac2f28668
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = rum-git
+ pkgdesc = Rust Userstyle Manager
+ pkgver = 0.1.0.r14.g3c3733c
+ pkgrel = 1
+ url = https://github.com/chrisduerr/rum
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = cargo
+ makedepends = git
+ source = git+https://github.com/chrisduerr/rum
+ sha256sums = SKIP
+
+pkgname = rum-git
+
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"
+}