/
PKGBUILD
39 lines (32 loc) · 1.08 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
pkgname=vegastrike-engine-git
pkgver=0.9.0.alpha1.r0.g17bf87592
pkgrel=1
pkgdesc="A spaceflight simulator in massive universe"
arch=(x86_64)
url="https://www.vega-strike.org/"
license=(GPL2)
depends=(boost-libs python freeglut gtk3 libvorbis openal sdl2 glu
# namcap implicit depends
glibc gcc-libs glib2 zlib libglvnd libpng libjpeg-turbo expat)
makedepends=(git cmake boost)
provides=(vegastrike-engine)
conflicts=(vegastrike-engine)
source=("git+https://github.com/vegastrike/Vega-Strike-Engine-Source")
sha256sums=('SKIP')
pkgver() {
cd Vega-Strike-Engine-Source
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build(){
# buildtype None, enable ffmpeg, ogre will fail, not supported
# https://github.com/vegastrike/Vega-Strike-Engine-Source/issues/777#issuecomment-1763235378
cmake -B build -S "Vega-Strike-Engine-Source/engine" -Wno-dev \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
rm -rf ${pkgdir}/usr/include
rm -rf ${pkgdir}/usr/lib
}