diff --git a/satellites/extrafiles/jstest-gtk/jstest-gtk.desktop b/satellites/extrafiles/jstest-gtk/jstest-gtk.desktop new file mode 100644 index 0000000..432cfe9 --- /dev/null +++ b/satellites/extrafiles/jstest-gtk/jstest-gtk.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Name=Jstest +Comment=Joystick Configuration +Exec=jstest-gtk +Icon=jstest-gtk +Terminal=false +Categories=GTK;System; diff --git a/satellites/jstest-gtk-git.sat b/satellites/jstest-gtk-git.sat new file mode 100644 index 0000000..94b3bc5 --- /dev/null +++ b/satellites/jstest-gtk-git.sat @@ -0,0 +1,24 @@ +import 'vcs/git' +import 'compile/cmake' + +name=jstest-gtk + +vcs_git "https://github.com/Grumbel/$name/" +extrafile "$name.desktop" +header_end + +cd "$name" + +# Fix paths +sed -i -e "s/Main::current()->get_data_directory()/\"$(safe_sed "$dir_sysroot/$dir_prefix/$dir_datadir/$name/")\"/" src/joystick_list_widget.cpp + +compile_cmake -I + +install -Dm755 -t "$dir_install/$dir_prefix/$dir_bindir" "build/$name" +install -Dm644 -t "$dir_install/$dir_prefix/$dir_mandir/man1" "data/$name.1" +install -Dm644 -t "$dir_install/$dir_prefix/$dir_datadir/applications" "../$name.desktop" +install -Dm644 data/generic.png "$dir_install/$dir_prefix/$dir_datadir/pixmaps/$name.png" +mkdir -p "$dir_install/$dir_prefix/$dir_datadir/$name" +cp data/*.png "$dir_install/$dir_prefix/$dir_datadir/$name" + +# vim:set tabstop=4 shiftwidth=4 syntax=sh et: