diff options
author | Jens Staal | 2016-06-01 06:19:42 +0200 |
---|---|---|
committer | Jens Staal | 2016-06-01 06:19:42 +0200 |
commit | a9b20667e1631876a65284a022dd1136044aab14 (patch) | |
tree | 1f3592ae58139b731a828f95aa4e26df461de5fd | |
parent | 47e2b986b1daabb92c50443441fa92545adec178 (diff) | |
download | aur-a9b20667e1631876a65284a022dd1136044aab14.tar.gz |
add environment variables etc
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 18 | ||||
-rw-r--r-- | arcan.sh | 12 |
3 files changed, 30 insertions, 8 deletions
@@ -1,8 +1,8 @@ # Generated by mksrcinfo v8 -# Tue May 31 04:55:35 UTC 2016 +# Wed Jun 1 04:19:27 UTC 2016 pkgbase = arcan pkgdesc = Game Engine meets a Display Server meets a Multimedia Framework - pkgver = 0.5.0.r24.gb9f3e35 + pkgver = 0.5.0.r25.g18d5347 pkgrel = 1 url = http://arcan-fe.com arch = i686 @@ -16,14 +16,16 @@ pkgbase = arcan depends = mesa depends = freetype2 depends = sqlite - depends = lua + depends = luajit options = !libtool options = !strip options = !makeflags options = !buildflags options = staticlibs source = git://github.com/letoram/arcan.git + source = arcan.sh sha256sums = SKIP + sha256sums = 927886057ed536e10af07deb21e7b36889cbb8b95ccd8f522577fde31e17a5fc pkgname = arcan @@ -1,19 +1,19 @@ # Mantainer Jens Staal <staal1978@gmail.com> pkgname=arcan -pkgver=0.5.0.r24.gb9f3e35 +pkgver=0.5.0.r25.g18d5347 pkgrel=1 pkgdesc="Game Engine meets a Display Server meets a Multimedia Framework" arch=('i686' 'x86_64') url="http://arcan-fe.com" license=('GPL' 'BSD') -depends=('sdl' 'openal' 'mesa' 'freetype2' 'sqlite' 'lua') +depends=('sdl' 'openal' 'mesa' 'freetype2' 'sqlite' 'luajit') makedepends=('cmake' 'git') -source=('git://github.com/letoram/arcan.git') +source=('git://github.com/letoram/arcan.git' 'arcan.sh') -sha256sums=('SKIP') +sha256sums=('SKIP' '927886057ed536e10af07deb21e7b36889cbb8b95ccd8f522577fde31e17a5fc') options=('!libtool' '!strip' '!makeflags' '!buildflags' 'staticlibs') @@ -36,7 +36,9 @@ prepare() { build() { cd "$srcdir"/$pkgname/build # change Release to Debug if testing - cmake -DCMAKE_BUILD_TYPE="Release" -DVIDEO_PLATFORM=sdl ../src + # video platform options + # DVIDEO_PLATFORM=egl-dri, egl-nvidia, sdl, egl-gles, x11, x11-headless + cmake -DCMAKE_BUILD_TYPE="Release" -DVIDEO_PLATFORM=sdl -DENABLE_LWA=ON -DISTR_TAG=arch -DDISABLE_HIJACK=OFF ../src make -j 12 } @@ -45,6 +47,12 @@ package() { cd "$srcdir"/$pkgname/build cmake -E cmake_echo_color --cyan "Install the project..." DESTDIR="$pkgdir" cmake -DCMAKE_INSTALL_PREFIX="/usr" -P cmake_install.cmake + #fix potential installation errors putting stuff in /usr/local + cp -r "$pkgdir"/usr/local/* "$pkgdir"/usr/ + rm -rf "$pkgdir"/usr/local + #install default environment variables + mkdir -p "$pkgdir"/etc/profile.d + cp "$srcdir"/arcan.sh "$pkgdir"/etc/profile.d/ } diff --git a/arcan.sh b/arcan.sh new file mode 100644 index 000000000000..40fbecc679d0 --- /dev/null +++ b/arcan.sh @@ -0,0 +1,12 @@ + +ARCAN_RESOURCEPATH=/usr/share/arcan/resources +ARCAN_FONTPATH=/usr/share/arcan/resources/fonts +ARCAN_BINPATH=/usr/bin +ARCAN_STATEPATH=~/.config/arcan +ARCAN_APPLSTOREPAT=~/.config/arcan/appl +ARCAN_LIBPATH=/usr/lib +ARCAN_LOGPATH=~/tmp +# ARCAN_VIDEO_DEVICE= +# ARCAN_INPUT_SCANDIR= +# ARCAN_INPUT_TTYOVERRIDE +# ARCAN_INPUT_DISABLE_TTYPSWAP |