summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authortoastercup2016-07-10 20:00:10 -0500
committertoastercup2016-07-10 20:00:10 -0500
commit01640ef327ea3fac075ead49b99ea0d204b60474 (patch)
tree7cfaa0198b00468bb2e6294bc818f98f8569822c
downloadaur-01640ef327ea3fac075ead49b99ea0d204b60474.tar.gz
Migrate from poorly named hifi-interface-git package, refactor to remove wonky symlinks, add prepare() step, provide post-install documentation, and bump version
-rw-r--r--.SRCINFO55
-rw-r--r--PKGBUILD99
-rw-r--r--README.md7
-rw-r--r--hifi-assignment-client.launcher5
-rw-r--r--hifi-domain-server.launcher5
-rw-r--r--hifi-git.install14
-rw-r--r--hifi-ice-server.launcher5
-rw-r--r--hifi-interface.desktop10
-rw-r--r--hifi-interface.launcher5
-rw-r--r--hifi-interface.pngbin0 -> 57454 bytes
10 files changed, 205 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ae8681f1c61
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,55 @@
+# Generated by mksrcinfo v8
+# Mon Jul 11 00:29:22 UTC 2016
+pkgbase = hifi-git
+ pkgdesc = High Fidelity is an open, decentralized virtual world using sensors to control avatars and dynamically assigned devices as servers. This provides the client, servers and dev tools. (git - master)
+ pkgver = r44635.e893b17
+ pkgrel = 1
+ url = https://github.com/highfidelity/hifi
+ install = hifi-git.install
+ arch = i686
+ arch = x86_64
+ license = Apache2
+ makedepends = git
+ makedepends = cmake>=2.8.12.2
+ depends = qt5-base>=5.5.1
+ depends = qt5-script>=5.5.1
+ depends = qt5-tools>=5.5.1
+ depends = qt5-multimedia>=5.5.1
+ depends = qt5-svg>=5.5.1
+ depends = qt5-websockets>=5.5.1
+ depends = qt5-webengine>=5.5.1
+ depends = qt5-graphicaleffects>=5.5.1
+ depends = qt5-quickcontrols>=5.5.1
+ depends = glm>=0.9.5.4
+ depends = openssl>=1.0.1m
+ depends = intel-tbb>=4.3
+ depends = freeglut>=2.8.0
+ depends = oglplus>=0.63
+ depends = glew
+ depends = alsa-lib
+ depends = libxmu
+ depends = jack
+ depends = polyvox-git
+ depends = sdl2>=2.0.3
+ depends = bullet>=2.82
+ depends = libsoxr>=0.1.1
+ depends = qxmpp-qt5
+ source = hifi::git+https://github.com/highfidelity/hifi.git
+ source = gverb::git+https://github.com/highfidelity/gverb.git
+ source = hifi-interface.desktop
+ source = hifi-interface.png
+ source = hifi-assignment-client.launcher
+ source = hifi-domain-server.launcher
+ source = hifi-ice-server.launcher
+ source = hifi-interface.launcher
+ md5sums = SKIP
+ md5sums = SKIP
+ md5sums = 2cc1b0cbdc7b044d76fce091117d09cb
+ md5sums = a261965ec09a8dfd93175fdabb7cafbe
+ md5sums = 1eac79a3bc2179a4026ea1c6765fd44a
+ md5sums = ebb90bc133cb39d9d53b22fe8a954126
+ md5sums = 8405ec1a861b25e92c9640cdae8a3776
+ md5sums = ff5de09932f33f6e4f4e4093a4b5e1d8
+
+pkgname = hifi-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ef0b26e2752
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,99 @@
+# Maintainer: Alex Tharp <toastercup@gmail.com>
+# Upstream URL: https://github.com/highfidelity/hifi
+
+pkgname=hifi-git
+pkgver=r44635.e893b17
+pkgrel=1
+pkgdesc="High Fidelity is an open, decentralized virtual world using sensors to control avatars and dynamically assigned devices as servers. This provides the client, servers and dev tools. (git - master)"
+arch=('i686' 'x86_64')
+url="https://github.com/highfidelity/hifi"
+license=('Apache2')
+install="${pkgname}.install"
+makedepends=('git' 'cmake>=2.8.12.2')
+_qt5version=5.5.1
+depends=("qt5-base>=$_qt5version"
+ "qt5-script>=$_qt5version"
+ "qt5-tools>=$_qt5version"
+ "qt5-multimedia>=$_qt5version"
+ "qt5-svg>=$_qt5version"
+ "qt5-websockets>=$_qt5version"
+ "qt5-webengine>=$_qt5version"
+ "qt5-graphicaleffects>=$_qt5version"
+ "qt5-quickcontrols>=$_qt5version"
+
+ 'glm>=0.9.5.4'
+ 'openssl>=1.0.1m'
+ 'intel-tbb>=4.3'
+ 'freeglut>=2.8.0'
+ 'oglplus>=0.63'
+ 'glew'
+ 'alsa-lib'
+ 'libxmu'
+ 'jack'
+ 'polyvox-git'
+ 'sdl2>=2.0.3'
+ 'bullet>=2.82'
+ 'libsoxr>=0.1.1'
+ 'qxmpp-qt5'
+)
+_githifi=hifi
+_gitgverb=gverb
+source=("$_githifi::git+https://github.com/highfidelity/hifi.git"
+ "$_gitgverb::git+https://github.com/highfidelity/gverb.git"
+ 'hifi-interface.desktop'
+ 'hifi-interface.png'
+ 'hifi-assignment-client.launcher'
+ 'hifi-domain-server.launcher'
+ 'hifi-ice-server.launcher'
+ 'hifi-interface.launcher')
+md5sums=('SKIP'
+ 'SKIP'
+ '2cc1b0cbdc7b044d76fce091117d09cb'
+ 'a261965ec09a8dfd93175fdabb7cafbe'
+ '1eac79a3bc2179a4026ea1c6765fd44a'
+ 'ebb90bc133cb39d9d53b22fe8a954126'
+ '8405ec1a861b25e92c9640cdae8a3776'
+ 'ff5de09932f33f6e4f4e4093a4b5e1d8')
+
+pkgver() {
+ cd "$srcdir/$_githifi"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ # Symlink required gverb sources
+ mkdir -p "$srcdir/$_githifi/interface/external/gverb" && mkdir -p "$srcdir/$_githifi/libraries/audio-client/external/gverb"
+ ln -s -f "$srcdir/$_gitgverb/include" "$srcdir/$_githifi/interface/external/gverb/"
+ ln -s -f "$srcdir/$_gitgverb/src" "$srcdir/$_githifi/interface/external/gverb/"
+ ln -s -f "$srcdir/$_gitgverb/include" "$srcdir/$_githifi/libraries/audio-client/external/gverb/"
+ ln -s -f "$srcdir/$_gitgverb/src" "$srcdir/$_githifi/libraries/audio-client/external/gverb/"
+}
+
+build() {
+ cd $srcdir && mkdir -p build && cd $_
+ cmake -DCMAKE_INSTALL_PREFIX:PATH="$pkgdir/opt/interface" -DCMAKE_BUILD_TYPE:STRING=Release "../$_githifi"
+ make
+}
+
+package() {
+ install -Dm644 "$srcdir/hifi-interface.png" "$pkgdir/usr/share/pixmaps/hifi-interface.png"
+ install -Dm644 "$srcdir/hifi-interface.desktop" "$pkgdir/usr/share/applications/hifi-interface.desktop"
+
+ mkdir -p "$pkgdir/usr/bin"
+
+ #TODO: create patched CMAKE with make install target
+
+ install -Dm755 "$srcdir/build/assignment-client/assignment-client" "$pkgdir/opt/hifi/assignment-client"
+ install -Dm755 "$srcdir/hifi-assignment-client.launcher" "$pkgdir/usr/bin/hifi-assignment-client"
+
+ install -Dm755 "$srcdir/build/domain-server/domain-server" "$pkgdir/opt/hifi/domain-server/domain-server"
+ cp -R "$srcdir/build/domain-server/resources" "$pkgdir/opt/hifi/domain-server/"
+ install -Dm755 "$srcdir/hifi-domain-server.launcher" "$pkgdir/usr/bin/hifi-domain-server"
+
+ install -Dm755 "$srcdir/build/ice-server/ice-server" "$pkgdir/opt/hifi/ice-server"
+ install -Dm755 "$srcdir/hifi-ice-server.launcher" "$pkgdir/usr/bin/hifi-ice-server"
+
+ install -Dm755 "$srcdir/build/interface/interface" "$pkgdir/opt/hifi/interface/interface"
+ cp -R "$srcdir/build/interface/resources" "$pkgdir/opt/hifi/interface/"
+ install -Dm755 "$srcdir/hifi-interface.launcher" "$pkgdir/usr/bin/hifi-interface"
+}
diff --git a/README.md b/README.md
new file mode 100644
index 00000000000..e38e8f75209
--- /dev/null
+++ b/README.md
@@ -0,0 +1,7 @@
+hifi-interface-git
+============
+
+Open, decentralized virtual world using sensors to control avatars and dynamically assigned devices as servers.
+PKGBUILD to package the [High Fidelity](https://highfidelity.io/) virtual world client project.
+
+Builds from git (`master` branch)
diff --git a/hifi-assignment-client.launcher b/hifi-assignment-client.launcher
new file mode 100644
index 00000000000..f0751ce9beb
--- /dev/null
+++ b/hifi-assignment-client.launcher
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+cd "/opt/hifi/"
+./assignment-client $*
+exit $?
diff --git a/hifi-domain-server.launcher b/hifi-domain-server.launcher
new file mode 100644
index 00000000000..ef82cfb8890
--- /dev/null
+++ b/hifi-domain-server.launcher
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+cd "/opt/hifi/domain-server/"
+./domain-server $*
+exit $?
diff --git a/hifi-git.install b/hifi-git.install
new file mode 100644
index 00000000000..492efe1580d
--- /dev/null
+++ b/hifi-git.install
@@ -0,0 +1,14 @@
+post_install() {
+ echo
+ echo "==> The following can now be executed:"
+ echo "==> hifi-interface: The graphical archways to the boundless multiverse."
+ echo "==> hifi-domain-server: Provides assignments to the assignment-client for features such as audio, avatars, particles, etc."
+ echo "==> hifi-assignment-client: This pulls an assignment from the queue and executes it."
+ echo "==> hifi-ice-server: Orchestrates domain-server's ability to be accessed by avatars on the Internet without requiring firewall configuration."
+ echo
+ echo "==> To run your own server, follow the readme:"
+ echo "==> https://github.com/highfidelity/hifi#running-your-own-servers"
+ echo "==> ..and the online documentation:"
+ echo "==> https://readme.highfidelity.com/docs/domain-setup-quickstart"
+ echo
+}
diff --git a/hifi-ice-server.launcher b/hifi-ice-server.launcher
new file mode 100644
index 00000000000..21d40dbb4e2
--- /dev/null
+++ b/hifi-ice-server.launcher
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+cd "/opt/hifi/"
+./ice-server $*
+exit $?
diff --git a/hifi-interface.desktop b/hifi-interface.desktop
new file mode 100644
index 00000000000..55c5c7f3e3e
--- /dev/null
+++ b/hifi-interface.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Name=High Fidelity Interface
+Comment=Client for the decentralized, open source High Fidelity metaverse
+Exec=/opt/hifi/interface/interface
+Icon=/usr/share/pixmaps/hifi-interface.png
+Terminal=false
+StartupNotify=true
+Categories=Network;Game;3DGraphics
+MimeType=x-scheme-handler/hifi;
diff --git a/hifi-interface.launcher b/hifi-interface.launcher
new file mode 100644
index 00000000000..c58d3e97d1b
--- /dev/null
+++ b/hifi-interface.launcher
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+cd "/opt/hifi/interface/"
+./interface $*
+exit $?
diff --git a/hifi-interface.png b/hifi-interface.png
new file mode 100644
index 00000000000..30ed775a333
--- /dev/null
+++ b/hifi-interface.png
Binary files differ