14 Commits

Author SHA1 Message Date
Robert de Rooy
694cc766a4 Cleanup Bash scripts.
This makes them pass shellcheck. Except for a few unused
export warnings.

I also wonder if the majority of these files should be
in the root of the project, or should be moved to "build-scripts"
(or should still even exist).

a few minor changes

one more minor changes
2023-04-15 15:53:08 +02:00
Jookia
b3fa848f0f Replace '/bin/bash' with '/usr/bin/env bash' in shebangs
This should hopefully help portability with BSDs.
2022-12-12 17:52:27 +08:00
Robert de Rooy
150d6364e7 check for rpmbuild 2021-03-28 14:36:33 +02:00
Robert de Rooy
1f11baf298 Cleanup RPM spec file
I am working to submit dosbox-x to Fedora for possible inclusion,
but for that I need to ensure I had a suitable spec file. The
one included in the source tree had to be cleaned up.

This is still not 100% the same as the spec file I will use to
submit dosbox-x for a packaging review, but it is close.

One difference is, that this spec file generates a SDL1 binary,
while I will be submitting a SDL2 version upstream for 2 reasons
- SDL2 should be future
- Fedora is unlikely to accept the SDL1 version with customized SDL1

I can change the in-tree spec file to also generate the SDL2 version,
if there is no opposition.
2021-01-24 10:32:08 +01:00
Robert de Rooy
11cad2aab5 Use reverse DNS naming
Use reverse DNS naming for .desktop and .metainfo.xml as your
supposed to do nowadays according to freedesktop.org.

This also happens to match what is mandated by flatpak, so it
simplifies the flatpak post install script a little.

+ cleanup the mess that flatpak builds can leave behind when you
do a clean.
2020-10-20 15:24:03 +02:00
rderooy
2cac989664 Move appdata.xml to metainfo.xml as the former is deprecated.
Part of getting things ready for flatpak support
2020-09-27 21:27:59 +02:00
rderooy
662e2a64b9 Switch linux to SVG icon
I found that the icon used by DOSBox-X comes from
https://www.vogons.org/viewtopic.php?p=79575#p79575

Which apart from Windows and Mac icons also included a SVG icon
which is preferred on Linux, and looks nicer. So add the SVG icon
and update 'make install' and make-rpm.sh to use it.
The SVG icon is placed in contrib/icons

p.s. I found that the tar operation in make-rpm.sh blindly assumes
the directory containing the tree to be named "dosbox-x", instead
of just the current directory, it effectively will tar
../dosbox-x even if your in, say, dosbox-x.clone to keep different
trees apart... I did not change this for now, but it is something
to watch out for.
2020-09-08 16:09:42 +02:00
rderooy
c63e3e6232 Necessary changes for contrib dir support 2020-09-08 14:03:19 +02:00
Robert
a12c8e2e72
Update make-rpm.sh.in 2020-05-23 18:41:45 +02:00
Jonathan Campbell
03d51b8e93 more RPM work 2018-02-16 17:30:10 -08:00
Jonathan Campbell
9e556e212b RPM building, is working at least 2018-02-16 17:20:28 -08:00
Jonathan Campbell
924a502e3d more 2018-02-16 16:57:51 -08:00
Jonathan Campbell
2ff29bd381 more 2018-02-16 16:56:33 -08:00
Jonathan Campbell
68a61caf42 spec work 2018-02-16 16:45:02 -08:00