initial import
This commit is contained in:
41
vegastrike/PKGBUILD
Normal file
41
vegastrike/PKGBUILD
Normal file
@@ -0,0 +1,41 @@
|
||||
# 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"
|
||||
}
|
||||
28
vegastrike/vs
Executable file
28
vegastrike/vs
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
# This is a small wrapper that lets VegaStrike - Upon the Coldest Sea
|
||||
# run from seemingly anywhere
|
||||
set -e
|
||||
|
||||
VEGASTRIKE_LOCAL_SHARE_DIR="/usr/local/share/games/vegastrike"
|
||||
VEGASTRIKE_SHARE_DIR="/usr/share/games/vegastrike"
|
||||
|
||||
#Let's keep a log of the console
|
||||
if [ -f ~/.vegastrike/console.log ]; then
|
||||
mv -f ~/.vegastrike/console.log ~/.vegastrike/console.bak
|
||||
fi
|
||||
if [ -f ~/.vegastrike/console_err.log ]; then
|
||||
mv -f ~/.vegastrike/console_err.log ~/.vegastrike/console_err.bak
|
||||
fi
|
||||
|
||||
echo "Starting Vega Strike..."
|
||||
echo ""
|
||||
|
||||
if [ -d "${VEGASTRIKE_LOCAL_SHARE_DIR}" ]; then
|
||||
vegastrike -d"${VEGASTRIKE_LOCAL_SHARE_DIR}" "$1"
|
||||
elif [ -d "${VEGASTRIKE_SHARE_DIR}" ]; then
|
||||
vegastrike -d"${VEGASTRIKE_SHARE_DIR}" "$1"
|
||||
else
|
||||
echo "Unknown Game Asset Data Location."
|
||||
echo "Do you have the game assets installed?"
|
||||
exit 1
|
||||
fi
|
||||
17
vegastrike/vsettings
Executable file
17
vegastrike/vsettings
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
VEGASTRIKE_LOCAL_SHARE_DIR="/usr/local/share/games/vegastrike"
|
||||
VEGASTRIKE_SHARE_DIR="/usr/share/games/vegastrike"
|
||||
|
||||
# This is a small wrapper that lets VegaStrike - Upon the Coldest Sea
|
||||
# run from seemingly anywhere
|
||||
if [ -d "${VEGASTRIKE_LOCAL_SHARE_DIR}" ]; then
|
||||
vegasettings --target "${VEGASTRIKE_LOCAL_SHARE_DIR}"
|
||||
elif [ -d "${VEGASTRIKE_SHARE_DIR}" ]; then
|
||||
vegasettings --target "${VEGASTRIKE_SHARE_DIR}"
|
||||
else
|
||||
echo "Unknown Game Asset Data Location."
|
||||
echo "Do you have the game assets installed?"
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user