42 lines
1.5 KiB
Bash
42 lines
1.5 KiB
Bash
# Maintainer: Jesus E. <heckyel@riseup.net>
|
|
|
|
pkgname=vegastrike
|
|
pkgver=0.8.0
|
|
pkgrel=1
|
|
pkgdesc="Vega Strike - Free and libre space flight and trading simulator with realistic distances"
|
|
arch=('any')
|
|
url='https://www.vega-strike.org/'
|
|
license=('GPL-2')
|
|
depends=('vegastrike-engine')
|
|
makedepends=('cmake')
|
|
options=(!strip)
|
|
groups=('games')
|
|
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/vegastrike/Assets-Production/archive/refs/tags/v${pkgver}.tar.gz"
|
|
"vs"
|
|
"vsettings")
|
|
sha512sums=('63eca2dc1f566e136bc5951d033d5fe9342cc6bf70086bf0a5d4e731b0732fc4229212616fe8bae58c95d221f1a2648a04e6fd4b898bfb640f0c77f7f40d7718'
|
|
'a5d4ed6249333d2a0f4053dff4a6f9d5c4b03cc171d2a65ca06862ed5c11278205ea057fe0f8a4c69b582d16d519793a245e44ff7f32ed615745a1f0e271786f'
|
|
'de3d23aa7d01a4037ab44faec0592cc81dd704c314ec1befc76983ba7d45d45c80436c78b02ee3cee61824ce5358b16663e293f1fe377feb4998a4789e680529')
|
|
|
|
build(){
|
|
cmake \
|
|
-S Assets-Production-$pkgver \
|
|
-B build \
|
|
-DCMAKE_INSTALL_PREFIX=/usr
|
|
make -C build
|
|
}
|
|
|
|
package() {
|
|
make -C build DESTDIR="$pkgdir" install
|
|
|
|
# correct package-structure, making it fhs-compliant
|
|
install -d "$pkgdir/usr/share/games"
|
|
mv "$pkgdir/usr/share/$pkgname" "$pkgdir/usr/share/games"
|
|
rm -rf "$pkgdir/usr/bin"
|
|
install -d "$pkgdir/usr/games"
|
|
install -Dm755 "$srcdir/"{vs,vsettings} -t "$pkgdir/usr/games"
|
|
|
|
# install license
|
|
install -Dm644 "$srcdir/Assets-Production-$pkgver/vega-license.txt" -t "$pkgdir/usr/share/licenses/$pkgname"
|
|
}
|