summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMckol2018-09-21 23:38:12 +0200
committerMckol2018-09-22 21:14:05 +0200
commit503fea8b62cb8c8b8eac17ea8622efea6be2adc4 (patch)
treee191303878387945856b7bfa97118b387ecaae97
downloadaur-503fea8b62cb8c8b8eac17ea8622efea6be2adc4.tar.gz
Initial commit
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD59
-rw-r--r--veloren-voxygen3
3 files changed, 86 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..28cb7faf901
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = veloren-git
+ pkgdesc = An open-world, open-source multiplayer voxel RPG
+ pkgver = 0.1.0.r149.4e9bc27
+ pkgrel = 1
+ url = veloren.net
+ arch = x86_64
+ arch = i686
+ license = GPL3
+ makedepends = git
+ makedepends = rust-nightly
+ makedepends = cargo-nightly
+ depends = bash
+ provides = veloren-git
+ conflicts = veloren-git
+ noextract = veloren-voxygen
+ source = veloren-git::git+https://gitlab.com/veloren/game.git
+ source = git+https://gitlab.com/veloren/assets.git
+ source = veloren-voxygen
+ md5sums = SKIP
+ md5sums = SKIP
+ md5sums = SKIP
+
+pkgname = veloren-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..bbe6b005d6e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,59 @@
+# Maintainer: Mckol <mckol363@gmail.com>
+
+pkgname=veloren-git
+pkgver=0.1.0.r149.4e9bc27
+pkgrel=1
+pkgdesc="An open-world, open-source multiplayer voxel RPG"
+arch=('x86_64' 'i686')
+url="veloren.net"
+license=('GPL3')
+depends=('bash')
+makedepends=(
+ 'git'
+ 'rust-nightly'
+ 'cargo-nightly'
+)
+provides=("$pkgname")
+conflicts=("$pkgname")
+source=(
+ "$pkgname::git+https://gitlab.com/veloren/game.git"
+ "git+https://gitlab.com/veloren/assets.git"
+ "veloren-voxygen"
+)
+noextract=("veloren-voxygen")
+md5sums=('SKIP' 'SKIP' 'SKIP')
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g;s/v//'
+}
+
+prepare() {
+ cd "$srcdir/$pkgname/voxygen"
+ git submodule init assets
+ git config submodule.voxygen/assets.url "$srcdir/assets"
+ git submodule update
+}
+
+build() {
+ cd "$srcdir/$pkgname/voxygen"
+ cargo build --release
+ cd "$srcdir/$pkgname/server-cli"
+ cargo build --release
+}
+
+package() {
+ mkdir -p "$pkgdir/usr/share/veloren/voxygen"
+ mkdir -p "$pkgdir/usr/bin"
+ cp -r "$srcdir/$pkgname/voxygen/assets" "$pkgdir/usr/share/veloren/voxygen/assets"
+ cp -r "$srcdir/$pkgname/voxygen/shaders" "$pkgdir/usr/share/veloren/voxygen/shaders"
+ cp "$srcdir/$pkgname/target/release/voxygen" "$pkgdir/usr/share/veloren/voxygen/voxygen"
+ chmod +x "$pkgdir/usr/share/veloren/voxygen/voxygen"
+ # currently a script is needed to run voxygen from directory containing assets because using alternative assets path hasn't been implemented yet
+ cp "$srcdir/veloren-voxygen" "$pkgdir/usr/bin/"
+ chmod +x "$pkgdir/usr/bin/veloren-voxygen"
+
+ cp "$srcdir/$pkgname/target/release/server-cli" "$pkgdir/usr/bin/veloren-server"
+ chmod +x "$pkgdir/usr/bin/veloren-server"
+
+}
diff --git a/veloren-voxygen b/veloren-voxygen
new file mode 100644
index 00000000000..490e8c6023e
--- /dev/null
+++ b/veloren-voxygen
@@ -0,0 +1,3 @@
+#!/bin/bash
+cd /usr/share/veloren/voxygen
+./voxygen $*