blob: 9e5a7c14c1a9c2471d707dfeee5ffa2fc6165cc9 (
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
59
60
61
|
# Maintainer: jc_gargma <jc_gargma@iserlohn-fortress.net>
# Maintainer (AUR): George Rawlinson <george@rawlinson.net.nz>
# Contributor (AUR): Max Zhao <alcasa dot mz at gmail dot com>
# Contributor (AUR): Leonard König <leonard.r.koenig at googlemail dot com>
# # I maintain this because:
# AUR version uses /usr/share/games
pkgname=endless-sky
pkgver=0.9.9
pkgrel=1.3
arch=('i686' 'x86_64')
url="https://endless-sky.github.io/"
depends=(openal libpng glew hicolor-icon-theme libjpeg-turbo sdl2 libmad)
makedepends=(scons)
optdepends=('endless-sky-high-dpi: high resolution graphics assets'
'endless-sky-editor: map editor')
license=('GPL3' 'CCPL' 'custom:public domain')
pkgdesc="A space exploration and combat game similar to Escape Velocity"
source=("$pkgname-$pkgver.tar.gz::https://github.com/endless-sky/endless-sky/archive/v${pkgver}.tar.gz"
${pkgname}.desktop)
sha512sums=('3e46ffea3f15b276a837b1e53b416a48564a578dc009055b35704060bf8e63df4eef368814cf75da80448e2b942a0b40212555d29286a78f22c1c877661def6d'
'8948a286a84df381171888ab44da877476594b1f0877a3e54699a072fc0a85713767af7e1edbaf24d9fc8de49f1fe3d8e7955b1908eb2d02a5ea6d1027834527')
build() {
cd $pkgname-$pkgver
export CFLAGS="$CFLAGS -flto=4 -fPIE"
export CXXFLAGS="$CXXFLAGS -flto=4 -fPIE"
export LDFLAGS="$LDFLAGS,-pie"
scons -j 4
}
package() {
cd $pkgname-$pkgver
# Install executable
install -Dm755 endless-sky "${pkgdir}/usr/bin/endless-sky"
# resources
install -Dm644 credits.txt "${pkgdir}/usr/lib/${pkgname}/credits.txt"
install -Dm644 keys.txt "${pkgdir}/usr/lib/${pkgname}/keys.txt"
cp -rf data images sounds "${pkgdir}/usr/lib/${pkgname}/"
# .desktop
install -Dm644 ${srcdir}/endless-sky.desktop "${pkgdir}/usr/share/applications/endless-sky.desktop"
# icons
for res in 16 22 24 32 48 128 256 512; do
install -Dm644 \
"${srcdir}/${pkgname}-${pkgver}/icons/icon_${res}x${res}.png" \
"${pkgdir}/usr/share/icons/hicolor/${res}x${res}/apps/${pkgname}.png"
done
# manpage
install -Dm644 -t "${pkgdir}/usr/share/man/man6" endless-sky.6
# copyright
install -Dm644 copyright "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|