Was supposed to be a linux distribution, now just a collection of build scripts for packages on top of (ideally) any distribution.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.7 KiB

8 years ago
import 'compile/cmake'
name=nxengine-evo
version=2.6.2
8 years ago
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" \
'4801835d600fc65e710cac717c9a8eed'
8 years ago
download "http://www.cavestory.org/downloads/cavestoryen.zip" \
'5aad47f1cb72185d6e7f4c8c392f6b6e'
extrafile "$name.desktop"
extrafile "$name.png"
_
8 years ago
# 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_lib/$name" bin/nx
mkdir -p "$dir_install/$dir_prefix/$dir_bin"
ln -s "/$dir_prefix/$dir_lib/$name/nx" "$dir_install/$dir_prefix/$dir_bin/nxengine-evo"
8 years ago
# Install data
mkdir -p "$dir_install/$dir_prefix/$dir_data/$name"
cp -aT data "$dir_install/$dir_prefix/$dir_data/$name"
ln -s "/$dir_prefix/$dir_data/$name" "$dir_install/$dir_prefix/$dir_lib/$name/data"
8 years ago
# Install desktop file and icon
install -Dm644 -t "$dir_install/$dir_prefix/$dir_data/applications" "../$name.desktop"
install -Dm644 -t "$dir_install/$dir_prefix/$dir_data/pixmaps" "../$name.png"
8 years ago
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: