commit 38815ddd4e9025a29ccd7ac4465f381ed6ab01c6 Author: EnumDev Date: Wed Jul 30 15:10:46 2025 +0300 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3e58e5f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Exclude bpm archives +*.bpm \ No newline at end of file diff --git a/pkg.info b/pkg.info new file mode 100644 index 0000000..80850d1 --- /dev/null +++ b/pkg.info @@ -0,0 +1,9 @@ +name: dosbox +description: Cross-platform DOS Emulator +version: 0.74.3 +url: https://www.dosbox.com/ +license: GPL2-or-later +architecture: any +depends: ["alsa-lib","gcc","glu","libglvnd","libpng","sdl12-compat","sdl-net","sdl-sound","zlib"] +make_depends: ["mesa"] +type: source diff --git a/source-files/dosbox.desktop b/source-files/dosbox.desktop new file mode 100644 index 0000000..9fc1253 --- /dev/null +++ b/source-files/dosbox.desktop @@ -0,0 +1,23 @@ +[Desktop Entry] +Type=Application +Name=DOSBox Emulator +Name[ca]=Emulador DOSBox +Name[de]=DOSBox Emulator +Name[es]=Emulador DOSBox +Name[nl]=DOSBox Simulator +Name[ru]=Эмулятор DOSBox +Name[it]=DOSBox emulatore +Name[ua]=Емулятор DOSBox +Comment=Run old DOS applications +Comment[ca]=Executeu antigues aplicacions DOS +Comment[de]=Ein Emulator für alte DOS Programme +Comment[es]=Un emulador para ejecutar antiguas aplicaciones DOS +Comment[nl]=Een simulator om oude DOS-spellen te spelen +Comment[ru]=Запуск старых DOS-приложений +Comment[it]=Un emulatore per far girare vecchi giochi DOS +Comment[ua]=Запуск старих DOS-застосувань +Icon=dosbox +Exec=dosbox +Terminal=false +Categories=Game;Emulator; +Keywords=DOS Emulator; diff --git a/source-files/dosbox.png b/source-files/dosbox.png new file mode 100644 index 0000000..b8a9179 Binary files /dev/null and b/source-files/dosbox.png differ diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..13be45f --- /dev/null +++ b/source.sh @@ -0,0 +1,35 @@ +# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package +# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE +# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT + +DOWNLOAD="https://downloads.sourceforge.net/dosbox/dosbox-${BPM_PKG_VERSION%.*}-${BPM_PKG_VERSION##*.}.tar.gz" +FILENAME="${DOWNLOAD##*/}" + +# The prepare function is executed in the root of the temp directory +# This function is used for downloading files and putting them into the correct location +prepare() { + wget "$DOWNLOAD" + tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" +} + +# The build function is executed in the source directory +# This function is used to compile the source code +build() { + ./configure --prefix=/usr --sysconfdir=/etc/dosbox + make +} + +# The package function is executed in the source directory +# This function is used to move the compiled files into the output directory +package() { + make DESTDIR="$BPM_OUTPUT" install + + # Install desktop icon + install -Dm644 "$BPM_WORKDIR"/dosbox.png "$BPM_OUTPUT"/usr/share/pixmaps/dosbox.png + + # Install desktop file + install -Dm644 "$BPM_WORKDIR"/dosbox.desktop "$BPM_OUTPUT"/usr/share/applications/dosbox.desktop + + # Install package license + install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/dosbox/COPYING +}