summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6dba9fad3aad7004f09275f9f0b3f9f9e1dc1033 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Maintainer: Linus Probert <linus.probert@gmail.com>
pkgname=blightmud-git
pkgver=3.4.0.699.gee21dfe
pkgrel=1
epoch=
pkgdesc="A terminal mud client written in rust"
arch=('x86_64' 'i686')
url="https://github.com/blightmud/blightmud"
license=('GPL')
groups=()
depends=('gcc-libs' 'openssl' 'alsa-lib')
makedepends=('cargo' 'git')
checkdepends=()
optdepends=()
provides=('blightmud')
conflicts=('blightmud')
replaces=()
backup=()
options=()
install=
changelog=
source=("$pkgname::git+https://github.com/blightmud/blightmud.git#branch=dev")
sha256sums=('SKIP')

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

build() {
	cd $pkgname
	cargo build --release
}

check() {
	cd $pkgname
	cargo test
}

package() {
	cd $pkgname
	install -D -m755 "$srcdir/$pkgname/target/release/blightmud" "$pkgdir/usr/bin/blightmud"
}