summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorquininer kel2016-08-14 23:54:57 +0800
committerquininer kel2016-08-14 23:54:57 +0800
commit2f2173d5c53792935c5eeb4c631fb1c45c0e5c12 (patch)
tree5fb9bf802f1bc2507b8f89f997fa4cb8b8323c84
downloadaur-2f2173d5c53792935c5eeb4c631fb1c45c0e5c12.tar.gz
init
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD29
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..78d8b1f49cd
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+# Generated by mksrcinfo v8
+# Sun Aug 14 15:53:45 UTC 2016
+pkgbase = ruma-git
+ pkgdesc = A Matrix homeserver client API written in Rust.
+ pkgver = 0.1.0.159
+ pkgrel = 1
+ url = https://github.com/ruma/ruma
+ arch = i686
+ arch = x86_64
+ license = GPL-3.0
+ makedepends = rust
+ makedepends = cargo
+ makedepends = git
+ makedepends = python-pytoml
+ depends = rocksdb
+ provides = ruma
+ conflicts = ruma
+ source = git://github.com/ruma/ruma.git
+ sha256sums = SKIP
+
+pkgname = ruma-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..48ab3c224a3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+pkgname=ruma-git
+_pkgname=ruma
+pkgdesc=" A Matrix homeserver client API written in Rust."
+pkgrel=1
+pkgver=0.1.0.159
+arch=('i686' 'x86_64')
+conflicts=("ruma")
+provides=("ruma")
+url="https://github.com/ruma/ruma"
+license=('GPL-3.0')
+depends=('rocksdb')
+makedepends=('rust' 'cargo' 'git' 'python-pytoml')
+source=('git://github.com/ruma/ruma.git')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $_pkgname
+ echo "$(python -c "print(__import__('pytoml').loads('\n'.join(open('Cargo.toml').read().splitlines()[:12]))['package']['version'])").$(git rev-list --count HEAD)"
+}
+
+build() {
+ cd $_pkgname
+ cargo build --release --no-default-features
+}
+
+package() {
+ cd $_pkgname
+ install -D -m755 "$srcdir/$_pkgname/target/release/ruma" "$pkgdir/usr/bin/ruma"
+}