From 2a2d5e4bb2db9793bded759dc2e1abed4961cbe2 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Mon, 24 Oct 2016 22:46:19 +0200 Subject: [PATCH] Add stepmania --- satellites/stepmania.sat | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 satellites/stepmania.sat diff --git a/satellites/stepmania.sat b/satellites/stepmania.sat new file mode 100644 index 0000000..d21022f --- /dev/null +++ b/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: