diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..bb44ad0 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +duckstation (0.1-10091-g4a246a74a-1rakuos9) unstable; urgency=medium + + * Initial packaging. + + -- Joshua Webb Thu, 06 Nov 2025 22:40:00 -0700 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..c20e61e --- /dev/null +++ b/debian/control @@ -0,0 +1,19 @@ +Source: duckstation +Section: games +Priority: optional +Maintainer: Joshua Webb +Build-Depends: debhelper (>= 11), + debhelper-compat (= 11), +Standards-Version: 3.9.8 +Homepage: https://xemu.app +XS-Debian-Vcs-Browser: https://github.com/mborgerson/xemu +XS-Debian-Vcs-Git: https://github.com/mborgerson/xemu.git +Vcs-Browser: https://github.com/mborgerson/xemu +Vcs-Git: https://github.com/mborgerson/xemu.git + +Package: duckstation +Architecture: amd64 +Multi-Arch: foreign +Depends: ${misc:Depends} +Provides: duckstation +Description:DuckStation is an simulator/emulator of the Sony PlayStation(TM) console, focusing on playability, speed, and long-term maintainability. The goal is to be as accurate as possible while maintaining performance suitable for low-end devices. Note: DuckStation is provided in the non-free repository due to licensing restrictions set by its developers which prohibit redistribution by Linux distributions. This package contains the unmodified official binary release. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..5b4d8b3 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,10 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: RakuOS Branding +Upstream-Contact: Joshua Webb +Source: https://rakuos.org/ + +Files: * +Copyright: 2025 Joshua Webb +License: GPL-3+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License version 3 or later. diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..5fef0a6 --- /dev/null +++ b/debian/install @@ -0,0 +1,7 @@ +usr/games/* usr/games/ +squashfs-root/usr/bin/* opt/duckstation/ +squashfs-root/usr/lib/* opt/duckstation/lib/ +squashfs-root/usr/plugins/* opt/duckstation/lib/plugins/ +squashfs-root/usr/share/applications/* usr/share/applications/ +squashfs-root/usr/share/icons/hicolor/512x512/* usr/share/icons/hicolor/512x512/ +squashfs-root/usr/share/metainfo/* /usr/share/metainfo/ diff --git a/debian/install.bk b/debian/install.bk new file mode 100644 index 0000000..40fe6a9 --- /dev/null +++ b/debian/install.bk @@ -0,0 +1,6 @@ +usr/share/plymouth/themes/rakuos/* usr/share/plymouth/themes/rakuos/ +usr/share/sddm/themes/rakuos/* usr/share/sddm/themes/rakuos/ +usr/share/wallpapers/RakuOS/* usr/share/wallpapers/RakuOS/ +usr/share/icons/rakuos/* usr/share/icons/rakuos/ +usr/share/calamares/branding/rakuos/* usr/share/calamares/branding/rakuos/ +usr/share/grub/themes/rakuos/* usr/share/grub/themes/rakuos/ diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..d5c6c11 --- /dev/null +++ b/debian/rules @@ -0,0 +1,20 @@ +#!/usr/bin/make -f +# Simple dh (debhelper) build rules file +%: + dh $@ + +# Prevent dh_strip from running on this package +override_dh_strip: + @echo "Skipping dh_strip for Duckstation (bundled libs)" + +override_dh_shlibdeps: + @echo "Skipping dh_shlibdeps for Duckstation (bundled libs)" + +override_dh_fixperms: + dh_fixperms + chmod 755 debian/duckstation/opt/duckstation/duckstation-qt + chmod u+x debian/duckstation/opt/duckstation/duckstation-qt + chmod 755 debian/duckstation/usr/games/duckstation-qt + chmod u+x debian/duckstation/usr/games/duckstation-qt + chmod 755 debian/duckstation/usr/share/applications/org.duckstation.DuckStation.desktop + chmod u+x debian/duckstation/usr/share/applications/org.duckstation.DuckStation.desktop diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/usr/games/duckstation-qt b/usr/games/duckstation-qt new file mode 100755 index 0000000..1d75225 --- /dev/null +++ b/usr/games/duckstation-qt @@ -0,0 +1,9 @@ +#!/bin/bash +# Add DuckStation's lib path before system libs +export LD_LIBRARY_PATH="/opt/duckstation/lib:${LD_LIBRARY_PATH}" +# Point Qt to its plugins directory (usually inside lib/qt or lib/plugins) +export QT_PLUGIN_PATH="/opt/duckstation/lib/plugins:${QT_PLUGIN_PATH}" +# Optionally ensure correct platform plugin search +export QT_QPA_PLATFORM_PLUGIN_PATH="/opt/duckstation/lib/plugins/platforms" + +exec /opt/duckstation/duckstation-qt "$@"