version 20150523
commit
440d893b68
|
@ -0,0 +1,26 @@
|
|||
# Generated by makepkg 4.2.1
|
||||
# Tue Jun 9 17:02:44 UTC 2015
|
||||
pkgbase = ysflight
|
||||
pkgdesc = A portable flight simulator
|
||||
pkgver = 20150523
|
||||
pkgrel = 2
|
||||
url = http://wwwe.ysflight.com/
|
||||
arch = i686
|
||||
arch = x86_64
|
||||
license = freeware
|
||||
depends = zenity
|
||||
depends = lib32-libpulse
|
||||
depends = lib32-glu
|
||||
source = http://ysflight.in.coocan.jp/download/YsflightForLinux.zip
|
||||
source = ysflight.desktop
|
||||
source = ysflight-server.desktop
|
||||
source = ysflight.png
|
||||
source = ysflight.sh
|
||||
md5sums = 2257ce6d2041f55f7a17a1d4034983af
|
||||
md5sums = d137828b093f2e16f289f5a3d922f31c
|
||||
md5sums = eb042809766b50b7195065f8d2e0692b
|
||||
md5sums = a544483da4de1585434c0c134eb60be0
|
||||
md5sums = a72ce06ebea39126edd88d512d763115
|
||||
|
||||
pkgname = ysflight
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
# Maintainer: Yves G. <theYinYeti@yalis.fr>
|
||||
|
||||
pkgname=ysflight
|
||||
pkgver=20150523
|
||||
pkgrel=2
|
||||
pkgdesc="A portable flight simulator"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://wwwe.ysflight.com/"
|
||||
license=('freeware')
|
||||
depends=(zenity lib32-libpulse lib32-glu)
|
||||
ysflight_dir="/opt/ysflight-$pkgver"
|
||||
|
||||
source=('http://ysflight.in.coocan.jp/download/YsflightForLinux.zip'
|
||||
'ysflight.desktop'
|
||||
'ysflight-server.desktop'
|
||||
'ysflight.png'
|
||||
'ysflight.sh')
|
||||
md5sums=('2257ce6d2041f55f7a17a1d4034983af'
|
||||
'd137828b093f2e16f289f5a3d922f31c'
|
||||
'eb042809766b50b7195065f8d2e0692b'
|
||||
'a544483da4de1585434c0c134eb60be0'
|
||||
'a72ce06ebea39126edd88d512d763115')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/"
|
||||
sed -i "s#YSFLIGHT_DIR#${ysflight_dir}#g" ysflight.sh
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${pkgdir}/"
|
||||
|
||||
mkdir -p "$(dirname "${ysflight_dir#/}")"
|
||||
cp -a "${srcdir}/Ysflight" "${ysflight_dir#/}"
|
||||
find "${ysflight_dir#/}" -type d -exec chmod 755 {} \;
|
||||
find "${ysflight_dir#/}" ! -type d -exec chmod 444 {} \;
|
||||
chmod 555 "${ysflight_dir#/}"/ysflight/ysflight*_*
|
||||
|
||||
install -Dm755 "${srcdir}/ysflight.sh" usr/bin/ysflight
|
||||
touch usr/bin/ysflight
|
||||
ln -s ysflight usr/bin/ysflight-server
|
||||
install -Dm444 "${srcdir}/ysflight.png" usr/share/pixmaps/ysflight.png
|
||||
install -Dm755 "${srcdir}/ysflight.desktop" usr/share/applications/ysflight.desktop
|
||||
install -Dm755 "${srcdir}/ysflight-server.desktop" usr/share/applications/ysflight-server.desktop
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Version=1.0
|
||||
Name=Server for YsFlight
|
||||
Name[fr]=Serveur YsFlight
|
||||
Comment=A portable flight simulator
|
||||
Comment[fr]=Simulateur de vol multi-plateformes
|
||||
Exec=ysflight-server
|
||||
Icon=ysflight
|
||||
Terminal=true
|
||||
Categories=Game;Simulation;
|
|
@ -0,0 +1,10 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Version=1.0
|
||||
Name=YsFlight
|
||||
Comment=A portable flight simulator
|
||||
Comment[fr]=Simulateur de vol multi-plateformes
|
||||
Exec=ysflight
|
||||
Icon=ysflight
|
||||
Terminal=false
|
||||
Categories=Game;Simulation;
|
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
|
@ -0,0 +1,44 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Mirror files to the home directory
|
||||
if [ ! -d "$HOME/.config/ysflight" ]; then
|
||||
[ -d "$HOME/.config" ] || mkdir "$HOME/.config"
|
||||
cp -r "YSFLIGHT_DIR/ysflight/config" "$HOME/.config/ysflight"
|
||||
fi
|
||||
if [ -d "$HOME/.cache/ysflight" ] && [ "$0" -nt "$HOME/.cache/ysflight" ]; then
|
||||
rm -rf "$HOME/.cache/ysflight"
|
||||
fi
|
||||
if [ ! -d "$HOME/.cache/ysflight" ]; then
|
||||
mkdir -p "$HOME/.cache/ysflight"
|
||||
# lndir without lndir…
|
||||
find "YSFLIGHT_DIR/ysflight" -mindepth 1 -printf '%y\t%P\n' \
|
||||
| while IFS=$'\t' read t n; do case $t in
|
||||
d) mkdir "$HOME/.cache/ysflight/$n" ;;
|
||||
*) ln -s "YSFLIGHT_DIR/ysflight/$n" "$HOME/.cache/ysflight/$n" ;;
|
||||
esac; done
|
||||
rm -rf "$HOME/.cache/ysflight/config"
|
||||
ln -s "$HOME/.config/ysflight" "$HOME/.cache/ysflight/config"
|
||||
fi
|
||||
|
||||
# Launch YsFlight
|
||||
cd "$HOME/.cache/ysflight/"
|
||||
arch=$(uname -m | grep -o 64 || echo 32)
|
||||
conf="$HOME/.config/ysflight/archlinux"
|
||||
|
||||
if [ "${0##*/}" == 'ysflight-server' ]; then
|
||||
exec ./ysflight${arch}_nownd "$@"
|
||||
else
|
||||
# Setup
|
||||
while [ ! -f "$HOME/.config/ysflight/archlinux" ]; do
|
||||
version=$(zenity --list --radiolist --print-column=2 --hide-column=2 \
|
||||
--title 'Choose your YsFlight binary' \
|
||||
--text "The choice is stored in ${conf}; remove this file to get this dialog again." \
|
||||
--column="Choice" --column "" --column="Binary" \
|
||||
1 gl1 'OpenGL 1.x' \
|
||||
2 gl2 'OpenGL 2.0' || exit 1)
|
||||
[ -n "$version" ] && printf 'version="%s"\n' "$version" >"$conf"
|
||||
done
|
||||
. "$conf"
|
||||
# Run
|
||||
exec ./ysflight${arch}_${version} "$@"
|
||||
fi
|
Loading…
Reference in New Issue