summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcyrant2016-12-06 13:29:50 +0300
committercyrant2016-12-06 13:29:50 +0300
commite6d1133e4d45b77c4c6d74c7fde85150aca2694b (patch)
treed4f42646888358c765ae18cb25bc33b103bddcd8
downloadaur-e6d1133e4d45b77c4c6d74c7fde85150aca2694b.tar.gz
initial
-rw-r--r--.SRCINFO27
-rw-r--r--.gitignore6
-rw-r--r--PKGBUILD53
-rw-r--r--voxelquest.desktop10
-rw-r--r--voxelquest.sh3
5 files changed, 99 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7e87169130a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,27 @@
+pkgbase = voxelquest
+ pkgdesc = Both an open source voxel game engine and a role playing game.
+ pkgver = 0.1
+ pkgrel = 1
+ url = http://www.voxelquest.com
+ arch = x86_64
+ license = MIT
+ makedepends = cmake
+ makedepends = unzip
+ depends = freeglut
+ depends = sfml
+ conflicts = voxelquest-git
+ noextract = voxelquest-resources.zip
+ noextract = lzz_2_8_2_linux.zip
+ source = voxelquest::git+https://github.com/gavanw/vqisosmall.git#tag=0.1
+ source = voxelquest-resources.zip::https://github.com/gavanw/vqisosmall/releases/download/0.1/resources.zip
+ source = lzz_2_8_2_linux.zip::http://www.lazycplusplus.com/lzz_2_8_2_linux.zip
+ source = voxelquest.desktop
+ source = voxelquest.sh
+ md5sums = SKIP
+ md5sums = 3d8da23048f9a64d3f3ed7cdd7598d72
+ md5sums = 0aad7107b76ebf338a2e38e7604dbedb
+ md5sums = 2dbce2b10fc8225506b92b684e2abfa9
+ md5sums = 0d2311fcbd9fe065d1168123ade4dce0
+
+pkgname = voxelquest
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..22b5388fa7d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+*
+!.gitignore
+!.SRCINFO
+!PKGBUILD
+!*.desktop
+!*.sh
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3a404a2816c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,53 @@
+# Maintainer: cyrant <cyrant at tuta dot io>
+
+pkgname=voxelquest
+pkgver=0.1
+pkgrel=1
+pkgdesc='Both an open source voxel game engine and a role playing game.'
+url='http://www.voxelquest.com'
+arch=('x86_64')
+license=('MIT')
+conflicts=('voxelquest-git')
+depends=('freeglut' 'sfml')
+makedepends=('cmake' 'unzip')
+_lzz='lzz_2_8_2_linux.zip'
+source=(
+ "${pkgname}::git+https://github.com/gavanw/vqisosmall.git#tag=${pkgver}"
+ "${pkgname}-resources.zip::https://github.com/gavanw/vqisosmall/releases/download/${pkgver}/resources.zip"
+ "${_lzz}::http://www.lazycplusplus.com/${_lzz}"
+ "${pkgname}.desktop"
+ "${pkgname}.sh"
+)
+md5sums=(
+ 'SKIP'
+ '3d8da23048f9a64d3f3ed7cdd7598d72'
+ '0aad7107b76ebf338a2e38e7604dbedb'
+ '2dbce2b10fc8225506b92b684e2abfa9'
+ '0d2311fcbd9fe065d1168123ade4dce0'
+)
+noextract=(
+ "${pkgname}-resources.zip"
+ "${_lzz}"
+)
+
+prepare() {
+ unzip -o "${_lzz}" -d "${pkgname}"
+}
+
+build() {
+ mkdir -p "${pkgname}-build"
+ cd "${pkgname}-build"
+ cmake "../${pkgname}" &&
+ make
+}
+
+package() {
+ install -Dm755 "${pkgname}-build/VoxelQuest" "${pkgdir}/opt/${pkgname}/bin/${pkgname}"
+ install -dm755 "${pkgdir}/opt/${pkgname}/src/glsl"
+ cp -dpr --no-preserve=ownership "${pkgname}/cdat" "${pkgdir}/opt/${pkgname}"
+ cp -dpr --no-preserve=ownership "${pkgname}/src/glsl" "${pkgdir}/opt/${pkgname}/src"
+ unzip -o "${pkgname}-resources.zip" data/* -d "${pkgdir}/opt/${pkgname}"
+ install -Dm644 "${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm755 "${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
+ install -Dm644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+}
diff --git a/voxelquest.desktop b/voxelquest.desktop
new file mode 100644
index 00000000000..3bdd9d60d13
--- /dev/null
+++ b/voxelquest.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=1.0
+Name=Voxel Quest
+Comment=Voxel role playing game
+Exec=voxelquest
+Icon=voxelquest
+Terminal=false
+Type=Application
+StartupNotify=true
+Categories=Game;
diff --git a/voxelquest.sh b/voxelquest.sh
new file mode 100644
index 00000000000..aa67a57ad02
--- /dev/null
+++ b/voxelquest.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd /opt/voxelquest/bin
+exec ./voxelquest "$@"