initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

37
blasphemer/PKGBUILD Normal file
View File

@@ -0,0 +1,37 @@
# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=blasphemer
pkgver=0.1.8
pkgrel=4
pkgdesc="A free and libre dark-fantasy game"
arch=('any')
url='https://github.com/Blasphemer/blasphemer'
license=('Modified-BSD')
depends=('chocolate-doom')
optdepends=('crispy-doom: For enhanced vanilla gameplay-options')
makedepends=('deutex')
groups=('games')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Blasphemer/blasphemer/archive/refs/tags/v${pkgver}.tar.gz"
"${pkgname}"
"${pkgname}.desktop"
"${pkgname}.png")
sha512sums=('48ba1cab6b8a3d1401c455ff75c6af1c12b2e1f4c98bb9ee8637fc4d5ed0dd15465b5446396f8a39ca5602fb8e2121a4ba863c9c616f3cdad025b312bf2a0da8'
'0c6a80f080510c061da397984c647e24f6999b3da509bd8cf2ab58bb2defec7f033f93363158a465530d67e827faf9deeca46c76644b8974048a959609239529'
'e0b4dc0a7c4b3f035d0c681ddd4b7e87a502c9d9342933d919001bf875faedc45e1e8971e773bfc0f6285f993ccc92b0efb47a2cf6dc1f34b8b3b4acb8c92395'
'f082bbf362c1840339f85140ac8bea6c196eff2417ab58729cfbfc623e9cd62e7cc224186412ada0bf2165bb93dd0938258ebc7f4849b3a316db3cac87da7278')
build() {
cd "$pkgbase-$pkgver"
make
}
package() {
cd "$pkgbase-$pkgver"
make prefix=/usr DESTDIR="$pkgdir" install
install -Dm755 $srcdir/$pkgname -t "$pkgdir/usr/games"
install -Dm644 $srcdir/$pkgname.desktop -t "$pkgdir/usr/share/applications"
install -Dm644 $srcdir/$pkgname.png -t "$pkgdir/usr/share/pixmaps"
install -Dm644 COPYING.md -t "$pkgdir/usr/share/licenses/$pkgname"
install -Dm644 {README.md,story.txt} -t "$pkgdir/usr/share/doc/$pkgname"
}

83
blasphemer/blasphemer Normal file
View File

@@ -0,0 +1,83 @@
#!/bin/bash -
# These ports should be ordered by ease-of-use, of which menu
# simplicity and support for high-resolution take high priority.
# "doom" is Debians generic name for their alternatives system.
PORTS="crispy-doom chocolate-doom prboom-plus"
# Just a single argument starting the command is allowed, -p, in order
# to explicitly set a port on the command line. -- is also supported
# so that -p can be instead sent directly to the ports argument list.
if [ $# -gt 0 ]; then
if [ "$1" = "-p" ]; then
DOOMPORT="$2"
shift; shift
elif [ "$1" = "--" ]; then
shift
fi
fi
IWAD=blasphem.wad
if [ -z "$DOOMWADPATH" ]; then
# Support installations of Freedoom to the home directory using
# the XDG spec. Makes this complicated, but lets do it right.
if [ -z "$XDG_DATA_HOME" ]; then
if [ -z "$HOME" ]; then
HOME=/
fi
XDG_PATH="$HOME"/.local/share/games/doom
else
XDG_PATH="$XDG_DATA_HOME"/games/doom
fi
PATHS=(
"$XDG_PATH"
/usr/local/share/games/doom
/usr/local/share/doom
/usr/share/games/doom
/usr/share/doom
)
export DOOMWADPATH="$(echo "${PATHS[@]}" | tr ' ' :)"
fi
if [ -z "$DOOMPORT" ] && [ -h "$HOME"/.doomport ]; then
if [ -f "$(readlink -f "$HOME"/.doomport)" ] \
&& [ -x "$(readlink -f "$HOME"/.doomport)" ]; then
DOOMPORT="$(readlink -f "$HOME"/.doomport)"
fi
fi
if [ "$DOOMPORT" ]; then
exec "$DOOMPORT" -iwad "$IWAD" "$@"
fi
dirpath=$(eval echo "\${PATH}" 2>/dev/null | tr : ' ')
for port in $PORTS; do
for dir in $dirpath; do
for file in "$dir"/"$port"; do
if [ -f "$file" ] && [ -x "$file" ]; then
exec "$file" -iwad "$IWAD" "$@"
fi
done
done
done
# If weve reached this far, no engine was successfully executed.
# print message to stderr and exit with a status of 1.
cat <<EOF >&2
$(basename "$0") could not locate nor launch a Doom engine. Most
likely, you simply need to install one, check your distribution
package repositories for names such as "odamex" or "chocolate-doom" or
seek out one and install it manually.
If you believe you already have one, you may just need to modify your
PATH environment variable to include it, or set up the $HOME/.doomport
symbolic link to point directly to the engine of your choice.
EOF
exit 1

View File

@@ -0,0 +1,9 @@
[Desktop Entry]
Name=Blasphemer
Comment=Travel through dark lands and fight with magic weapons
GenericName=First Person Shooter Game
Type=Application
Icon=blasphemer
Keywords=first;person;shooter;doom;
Categories=Game;ActionGame;
Exec=blasphemer

BIN
blasphemer/blasphemer.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB