Merge pull request #228189 from luxzeitlos/feat-pangeasoft-games-namespace-data-dir

nanosaur,nanosaur2,otto-matic: namespace data dir
This commit is contained in:
Guillaume Girol 2023-04-30 13:17:18 +00:00 committed by GitHub
commit bff0944e50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 6 deletions

View File

@ -25,8 +25,10 @@ stdenv.mkDerivation rec {
installPhase = ''
runHook preInstall
mkdir -p "$out/bin"
mv Nanosaur Data ReadMe.txt "$out/"
makeWrapper $out/Nanosaur $out/bin/Nanosaur --chdir "$out"
mkdir -p "$out/share/Nanosaur"
mv Data ReadMe.txt "$out/share/Nanosaur/"
install -Dm755 {.,$out/bin}/Nanosaur
wrapProgram $out/bin/Nanosaur --chdir "$out/share/Nanosaur"
install -Dm644 $src/packaging/nanosaur.desktop $out/share/applications/nanosaur.desktop
install -Dm644 $src/packaging/nanosaur-desktopicon.png $out/share/pixmaps/nanosaur-desktopicon.png
runHook postInstall

View File

@ -25,8 +25,10 @@ stdenv.mkDerivation rec {
installPhase = ''
runHook preInstall
mkdir -p "$out/bin"
mv Nanosaur2 Data ReadMe.txt "$out/"
makeWrapper $out/Nanosaur2 $out/bin/Nanosaur2 --chdir "$out"
mkdir -p "$out/share/Nanosaur2"
mv Data ReadMe.txt "$out/share/Nanosaur2/"
install -Dm755 {.,$out/bin}/Nanosaur2
wrapProgram $out/bin/Nanosaur2 --chdir "$out/share/Nanosaur2"
install -Dm644 $src/packaging/nanosaur2.desktop $out/share/applications/nanosaur2.desktop
install -Dm644 $src/packaging/nanosaur2-desktopicon.png $out/share/pixmaps/nanosaur2-desktopicon.png
runHook postInstall

View File

@ -27,8 +27,10 @@ stdenv.mkDerivation rec {
runHook preInstall
mkdir -p "$out/bin"
mv OttoMatic Data ReadMe.txt "$out/"
makeWrapper $out/OttoMatic $out/bin/OttoMatic --chdir "$out"
mkdir -p "$out/share/OttoMatic"
mv Data ReadMe.txt "$out/share/OttoMatic/"
install -Dm755 {.,$out/bin}/OttoMatic
wrapProgram $out/bin/OttoMatic --chdir "$out/share/OttoMatic"
install -Dm644 $src/packaging/io.jor.ottomatic.desktop $out/share/applications/io.jor.ottomatic.desktop
install -Dm644 $src/packaging/io.jor.ottomatic.png $out/share/pixmaps/io.jor.ottomatic.png
runHook postInstall