summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorquininer kel2016-08-14 23:54:57 +0800
committerquininer kel2016-08-14 23:54:57 +0800
commit2f2173d5c53792935c5eeb4c631fb1c45c0e5c12 (patch)
tree5fb9bf802f1bc2507b8f89f997fa4cb8b8323c84 /PKGBUILD
downloadaur-ruma-git.tar.gz
init
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
1 files changed, 29 insertions, 0 deletions
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"
+}