diff options
author | 007exe | 2019-08-17 16:24:14 +0300 |
---|---|---|
committer | 007exe | 2019-08-17 16:24:14 +0300 |
commit | 475b459d98c0ceda16d29ab3999bab4a278337bf (patch) | |
tree | b955c0018f91515b51cdddc8122ac8b10556162c /PKGBUILD | |
download | aur-475b459d98c0ceda16d29ab3999bab4a278337bf.tar.gz |
ver 1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..14614d101459 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +pkgname=openxray-git +_commit=0117cf5 +pkgver=1.6.02_$_commit +pkgrel=1 +pkgdesc="Unofficial X-Ray Engine Linux port by OpenXRay team (Originally developed by GSC Game World)" +arch=('x86_64') +url="https://github.com/OpenXRay/xray-16" +license=('unknown') +install="info.install" +makedepends=(gcc cmake glew libglvnd openal pugixml intel-tbb crypto++ liblockfile freeimage freeimage libogg libtheora libvorbis lzo lzop libjpeg-turbo libjpeg6-turbo ncurses pcre2 pcre sdl2) +depends=(glew sdl2 openal intel-tbb crypto++ liblockfile freeimage freeimage lua51 libogg libtheora libvorbis lzo lzop libjpeg-turbo) +source=(xray-16::git+https://github.com/OpenXRay/xray-16.git#commit=$_commit) +md5sums=('SKIP') + +prepare(){ +cd "$srcdir/xray-16" +git submodule init +git submodule update +} + +build() { + cd "$srcdir/xray-16" + rm -fr build + mkdir "$srcdir/xray-16/build" + cd "$srcdir/xray-16/build" + cmake .. + #cmake .. -DCMAKE_BUILD_TYPE=Debug + make -j$(nproc) +} + +package() { + cd "$srcdir/xray-16/build" + make DESTDIR="$pkgdir/" install + mv $pkgdir/usr/games/ $pkgdir/usr/bin +} |