Browse Source

Add stepmania

master
mid-kid 8 years ago
parent
commit
2a2d5e4bb2
  1. 32
      satellites/stepmania.sat

32
satellites/stepmania.sat

@ -0,0 +1,32 @@
# NOTE: This application uses an old version of ffmpeg and has a few external libraries in it's source tree as well.
import 'compile/cmake'
name=stepmania
majver=5.0
version=$majver.12
ffmpeg_version=2.1.8
update_url="https://github.com/$name/$name/releases"
dlextract "https://github.com/$name/$name/archive/v$version.tar.gz" \
'04dcba99ec1a6fd544e58a56e26e21ff'
download "https://ffmpeg.org/releases/ffmpeg-$ffmpeg_version.tar.bz2" \
'b11231d7ff0aa4f675958ea6b51caa96'
header_end
cd "$name-$version"
# Set up ffmpeg
extract "ffmpeg-$ffmpeg_version.tar.bz2" extern
sed -i -e '/set(SM_FFMPEG_SRC_LIST/s/ffmpeg-linux-/ffmpeg-/' \
-e "/set(SM_FFMPEG_VERSION/s/2.1.3/$(safe_sed "$ffmpeg_version")/" CMake/SetupFfmpeg.cmake
compile_cmake -- -DCMAKE_INSTALL_PREFIX="/$dir_prefix/$dir_libdir" -DWITH_STATIC_LINKING=OFF
mkdir -p "$dir_install/$dir_prefix/$dir_bindir"
ln -sf "$dir_sysroot/$dir_prefix/$dir_libdir/$name-$majver/$name" "$dir_install/$dir_prefix/$dir_bindir/$name"
install -Dm644 -t "$dir_install/$dir_prefix/$dir_datadir/applications" "$name.desktop"
cp -r icons "$dir_install/$dir_prefix/$dir_datadir/"
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab:
Loading…
Cancel
Save