diff options
author | 007exe | 2019-09-13 20:12:03 +0300 |
---|---|---|
committer | 007exe | 2019-09-13 20:12:03 +0300 |
commit | a09abeb260c9fa0efb22c192ffa4ca04982be39b (patch) | |
tree | 4e6a271f7024cc55a0fd3023750778805d445765 /PKGBUILD | |
parent | e9aeef9f636a6ba3f3ad4dc4fbcca82be7c19e2d (diff) | |
download | aur-a09abeb260c9fa0efb22c192ffa4ca04982be39b.tar.gz |
fix
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 19 insertions, 11 deletions
@@ -1,19 +1,26 @@ pkgname=openxray-git _commit=c7dbc6ea _build=502 -pkgver=1.6.02.$_build +pkgver=1.6.02_b502.c7dbc6ea9 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') +license=('custom:Custom 3-сlause BSD') install="info.install" -makedepends=(gcc git cmake glew libglvnd openal pugixml intel-tbb crypto++ liblockfile freeimage libogg libtheora libvorbis lzo lzop libjpeg-turbo libjpeg6-turbo ncurses pcre2 pcre sdl2) -depends=(glew sdl2 openal intel-tbb crypto++ liblockfile freeimage lua51 libogg libtheora libvorbis lzo lzop libjpeg-turbo) +makedepends=(gcc git cmake libglvnd libjpeg6-turbo ncurses pcre2 pcre) +depends=(glew sdl2 openal intel-tbb crypto++ liblockfile freeimage libogg libtheora libvorbis lzo lzop libjpeg-turbo) conflicts=(openxray) source=(xray-16::git+https://github.com/OpenXRay/xray-16.git#commit=$_commit) md5sums=('SKIP') +pkgver() { + cd "$srcdir/xray-16" + # OpenXRay versioning is based on AppVeyor build number + # https://ci.appveyor.com/project/OpenXRay/xray-16 + printf 1.6.02_"b%s.%s" $_build "$(git rev-parse --short HEAD)" +} + prepare(){ cd "$srcdir/xray-16" git submodule init @@ -22,17 +29,18 @@ git submodule update build() { cd "$srcdir/xray-16" - rm -fr build - mkdir "$srcdir/xray-16/build" - cd "$srcdir/xray-16/build" + rm -fr bin + mkdir "$srcdir/xray-16/bin" + cd "$srcdir/xray-16/bin" cmake .. #cmake .. -DCMAKE_BUILD_TYPE=Debug - #make -j$(nproc) make } package() { - cd "$srcdir/xray-16/build" - make DESTDIR="$pkgdir/" install - mv $pkgdir/usr/games/ $pkgdir/usr/bin + cd "$srcdir/xray-16/bin" + make DESTDIR="${pkgdir}/" install + mv "${pkgdir}/usr/games/" "${pkgdir}/usr/bin" + mkdir -p "${pkgdir}/usr/share/licenses/$pkgname/" + cp "$srcdir/xray-16/License.txt" "${pkgdir}/usr/share/licenses/$pkgname/" } |