blob: 74e82e33a902688a6612e594eb29a89b254e5ca3 (
plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Maintainer: Stephan Springer <buzo+arch@Lini.de>
# Contributor: Darren Wu <$(base64 --decode <<<'ZGFycmVuMTk5NzA4MTBAZ21haWwuY29tCg==')>
# Contributor: Tarn Burton <twburton at gmail dot com>
pkgname=pioneer
pkgver=20210203
pkgrel=2
pkgdesc="A game of lonely space adventure"
arch=('x86_64') # 'i686' untested
url="https://github.com/pioneerspacesim/pioneer"
license=('GPL3')
provides=('pioneer')
conflicts=('pioneer-bin' 'pioneer-git')
depends=(
'assimp' # libassimp-dev >= 3.2
'curl' # libcurl-dev
'freetype2' # libfreetype6-dev
'glew' # USE_SYSTEM_LIBGLEW include <GL/glew.h>
'hicolor-icon-theme'
'libpng' # libpng-dev
'libsigc++' # libsigc++-dev libsigc++-2.0-dev
'libvorbis' # libvorbis-dev
'lua52' # USE_SYSTEM_LIBLUA
'mesa' # mesa-common-dev
'sdl2' # libsdl2-dev
'sdl2_image' # libsdl2-image-dev
)
makedepends=(automake naturaldocs pkgconf cmake ninja)
source=("$pkgname-$pkgver.tar.gz::https://github.com/pioneerspacesim/pioneer/archive/$pkgver.tar.gz")
sha256sums=('fcbc57374123b44161e9d15d97bd950255f654a222840894f50bfc2be716ea68')
build()
{
cmake -S "$pkgname-$pkgver" -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX:PATH=/usr \
-D PIONEER_DATA_DIR:PATH=/usr/share/pioneer/ \
-D USE_SYSTEM_LIBGLEW:BOOL=ON \
-D USE_SYSTEM_LIBLUA:BOOL=ON \
-D CMAKE_EXPORT_COMPILE_COMMANDS=1 \
-Wno-dev
cmake --build build --target all build-data codedoc
}
package()
{
DESTDIR="$pkgdir" cmake --install build
# appdata
mv "$pkgdir"/usr/share/{appdata,metainfo}
# remove empty directories
rmdir "$pkgdir"/usr/share/pioneer/music/core/{{un,}docked,near-planet}
# codedoc
mkdir --parents "$pkgdir/usr/share/doc"
cp --recursive "$pkgname-$pkgver"/codedoc "$pkgdir"/usr/share/doc/pioneer
}
|