Skip to content

Commit

Permalink
My workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
nudgegoonies committed Feb 3, 2025
1 parent ee075ea commit e4b2785
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 0 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
caprice32 (20250128-1) UNRELEASED; urgency=medium

* Non-maintainer upload.

-- Andreas Wirooks <[email protected]> Mon, 03 Feb 2025 11:59:11 +0100

caprice32 (20170601-1) unstable; urgency=low

* Modification of installation path in code and cfg file
Expand Down
71 changes: 71 additions & 0 deletions debian/patches/fix-install-path.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
Honor FHS to please debian

--- a/cap32.cfg
+++ b/cap32.cfg
@@ -51,7 +51,7 @@
joystick_vkeyboard_button=10
# resources_path
# path to resources (menu images...). Default to $APP_PATH/resources
-resources_path=
+resources_path=/usr/share/caprice32/resources
# boot_time
# Estimated time in video frames the CPC takes to boot.
# Caprice will emulate this number of frames before starting to send a provided autocmd.
@@ -200,7 +200,7 @@
# Directory where ROMs are stored. Default to $APP_PATH/rom
# Special keyword DEFAULT will be replaced by amsdos.rom except if model is 464.
# That's because 464 without disks had no AMSDOS (cf. https://github.com/ColinPitrat/caprice32/issues/227)
-rom_path=
+rom_path=/usr/share/caprice32/rom
slot00=
slot01=
slot02=
--- a/cap32.cfg.tmpl
+++ b/cap32.cfg.tmpl
@@ -51,7 +51,7 @@
joystick_vkeyboard_button=10
# resources_path
# path to resources (menu images...). Default to $APP_PATH/resources
-resources_path=__SHARE_PATH__/resources
+resources_path=/usr/share/caprice32/resources
# boot_time
# Estimated time in video frames the CPC takes to boot.
# Caprice will emulate this number of frames before starting to send a provided autocmd.
@@ -172,16 +172,16 @@
max_track_size=5990
# cart_path
# Path to cartridges (Plus range). Default to $APP_PATH/cart
-cart_path=__SHARE_PATH__/cart
+cart_path=
# snap_path
# Path to snapshots. Default to $APP_PATH/snap
-snap_path=__SHARE_PATH__/snap
+snap_path=
# dsk_path
# Path to disks. Default to $APP_PATH/disk
-dsk_path=__SHARE_PATH__/disk
+dsk_path=
# tape_path
# Path to tapes. Default to $APP_PATH/tape
-tape_path=__SHARE_PATH__/tape
+tape_path=
fmt02=
fmt03=
fmt04=
@@ -193,14 +193,14 @@
printer_file=./printer.dat
# sdump_dir
# Directory where screenshots will be found. Default to $APP_PATH/screenshots
-sdump_dir=__SHARE_PATH__/screenshots
+sdump_dir=

[rom]
# rom_path
# Directory where ROMs are stored. Default to $APP_PATH/rom
# Special keyword DEFAULT will be replaced by amsdos.rom except if model is 464.
# That's because 464 without disks had no AMSDOS (cf. https://github.com/ColinPitrat/caprice32/issues/227)
-rom_path=__SHARE_PATH__/rom
+rom_path=/usr/share/caprice32/rom
slot00=
slot01=
slot02=
1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix-install-path.patch

0 comments on commit e4b2785

Please sign in to comment.