mid-kid
8 years ago
7 changed files with 72 additions and 0 deletions
Before Width: | Height: | Size: 536 B After Width: | Height: | Size: 536 B |
@ -0,0 +1,7 @@ |
|||||
|
[Desktop Entry] |
||||
|
Name=NXEngine-evo (Cave Story) |
||||
|
Comment=A clone/engine-rewrite of the classic jump-and-run platformer Cave Story/Doukutsu Monogatari |
||||
|
Exec=nxengine-evo |
||||
|
Icon=nxengine-evo |
||||
|
Type=Application |
||||
|
Categories=Game;AdventureGame; |
After Width: | Height: | Size: 536 B |
@ -0,0 +1,51 @@ |
|||||
|
import 'compile/cmake' |
||||
|
|
||||
|
name=nxengine-evo |
||||
|
version=2.4.1 |
||||
|
update_url="https://github.com/isage/$name/releases" |
||||
|
update_names="/archive/v$version.tar.gz" |
||||
|
|
||||
|
define_option 'console_key=`: The key used to access the debug console' |
||||
|
|
||||
|
dlextract "https://github.com/isage/$name/archive/v$version/$name-$version.tar.gz" \ |
||||
|
'dd1b27f8ebda24263bfe9bbe3d5b092c' |
||||
|
download "http://www.cavestory.org/downloads/cavestoryen.zip" \ |
||||
|
'5aad47f1cb72185d6e7f4c8c392f6b6e' |
||||
|
|
||||
|
extrafile "$name.desktop" |
||||
|
extrafile "$name.png" |
||||
|
header_end |
||||
|
|
||||
|
# Copy Cave Story executable and data to the source directory. |
||||
|
extract 'cavestoryen.zip' '' 'unzip -qd {dst} {src}' |
||||
|
cp -an CaveStory/data CaveStory/Doukutsu.exe "$name-$version" |
||||
|
|
||||
|
cd "$name-$version" |
||||
|
|
||||
|
# Some keyboards don't have the default key accessible. A saner default would be '.' or '-'. |
||||
|
# Since it's kind of up to the player, I just shittily patch it here. |
||||
|
console_key="$(safe_sed $(option =console_key))" |
||||
|
sed -i -e "/if (key == '\`')/s/\`/$console_key/" src/input.cpp |
||||
|
sed -i -e "/case '\`':/s/\`/$console_key/" src/console.cpp |
||||
|
|
||||
|
# Build the source |
||||
|
compile_cmake -I |
||||
|
|
||||
|
# Extract extra data from Doukutsu.exe |
||||
|
./bin/extract |
||||
|
|
||||
|
# Install game |
||||
|
install -Dm755 -t "$dir_install/$dir_prefix/$dir_libdir/$name" bin/nx |
||||
|
mkdir -p "$dir_install/$dir_prefix/$dir_bindir" |
||||
|
ln -s "/$dir_prefix/$dir_libdir/$name/nx" "$dir_install/$dir_prefix/$dir_bindir/nxengine-evo" |
||||
|
|
||||
|
# Install data |
||||
|
mkdir -p "$dir_install/$dir_prefix/$dir_datadir/$name" |
||||
|
cp -aT data "$dir_install/$dir_prefix/$dir_datadir/$name" |
||||
|
ln -s "/$dir_prefix/$dir_datadir/$name" "$dir_install/$dir_prefix/$dir_libdir/$name/data" |
||||
|
|
||||
|
# Install desktop file and icon |
||||
|
install -Dm644 -t "$dir_install/$dir_prefix/$dir_datadir/applications" "../$name.desktop" |
||||
|
install -Dm644 -t "$dir_install/$dir_prefix/$dir_datadir/pixmaps" "../$name.png" |
||||
|
|
||||
|
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: |
@ -0,0 +1,14 @@ |
|||||
|
import 'compile/configure' |
||||
|
|
||||
|
name=SDL2_ttf |
||||
|
version=2.0.14 |
||||
|
update_url='https://www.libsdl.org/projects/SDL_ttf/' |
||||
|
|
||||
|
dlextract "https://www.libsdl.org/projects/SDL_ttf/release/$name-$version.tar.gz" \ |
||||
|
'e53c05e1e7f1382c316afd6c763388b1' |
||||
|
header_end |
||||
|
|
||||
|
cd "$name-$version" |
||||
|
compile_configure -- --disable-static |
||||
|
|
||||
|
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: |
Loading…
Reference in new issue