2014-08-08 21:34:41 +02:00
|
|
|
|
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
unpackPhase
|
|
|
|
cd $sourceName
|
|
|
|
make phoenix=gtk profile=accuracy -C ananke
|
|
|
|
make phoenix=gtk profile=accuracy
|
|
|
|
|
|
|
|
install -dm 755 $out/share/applications $out/share/pixmaps $out/share/higan/Video\ Shaders $out/bin $out/lib
|
|
|
|
|
|
|
|
install -m 644 data/higan.desktop $out/share/applications/
|
|
|
|
install -m 644 data/higan.png $out/share/pixmaps/
|
|
|
|
cp -dr --no-preserve=ownership profile/* data/cheats.bml $out/share/higan/
|
|
|
|
cp -dr --no-preserve=ownership shaders/*.shader $out/share/higan/Video\ Shaders/
|
|
|
|
|
|
|
|
install -m 755 out/higan $out/bin/higan
|
|
|
|
install -m 644 ananke/libananke.so $out/lib/libananke.so.1
|
|
|
|
(cd $out/lib && ln -s libananke.so.1 libananke.so)
|
|
|
|
oldRPath=$(patchelf --print-rpath $out/bin/higan)
|
|
|
|
patchelf --set-rpath $oldRPath:$out/lib $out/bin/higan
|
2014-08-31 04:48:45 +02:00
|
|
|
|
|
|
|
# A dirty workaround, suggested by @cpages:
|
2014-08-31 14:45:44 +02:00
|
|
|
# we create a first-run script to populate
|
|
|
|
# the local $HOME with all the auxiliary
|
|
|
|
# stuff needed by higan at runtime
|
|
|
|
|
|
|
|
cat <<EOF > $out/bin/higan-config.sh
|
|
|
|
#!${shell}
|
|
|
|
|
|
|
|
cp --update --recursive $out/share/higan \$HOME/.config
|
|
|
|
chmod --recursive u+w \$HOME/.config/higan
|
2014-08-31 04:48:45 +02:00
|
|
|
|
|
|
|
EOF
|
|
|
|
|
2014-08-31 14:45:44 +02:00
|
|
|
chmod +x $out/bin/higan-config.sh
|