Add crispy-doom

This commit is contained in:
Travis Burtrum 2018-12-23 11:27:41 -05:00
parent dac9b3128c
commit b28c069091
3 changed files with 70 additions and 0 deletions

5
src/crispy-doom/.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
*.pkg.tar*
*.src.tar*
*.gz
src
pkg

48
src/crispy-doom/PKGBUILD Normal file
View File

@ -0,0 +1,48 @@
# Maintainer: Mike Swanson <mikeonthecomputer@gmail.com>
pkgname=crispy-doom
pkgdesc="Vanilla-compatible enhanced Doom engine"
pkgver=5.4
pkgrel=1
arch=('i686' 'x86_64')
url="http://fabiangreffrath.github.io/crispy-doom"
license=('GPL2')
depends=('libpng' 'libsamplerate' 'sdl2_mixer' 'sdl2_net')
makedepends=('python')
optdepends=('freedm: Free deathmatch game'
'freedoom1: Free Ultimate Doom-compatible game'
'freedoom2: Free Doom II/Final Doom-compatible game')
install=crispy-doom.install
source=(https://github.com/fabiangreffrath/$pkgname/archive/$pkgname-$pkgver.tar.gz)
sha512sums=('aa3dedfc5517e5347a9b0b25b2926f58a9bf470ec9879e61d67be3acbd3051cece4a3eb74d7fea2b5c373e808b50f86f82add3da25ec0f1111a52ed5662f1e5f')
prepare() {
# GitHub's generated archive prefix kind of sucks.
mv "$pkgname-$pkgname-$pkgver" "$pkgname-$pkgver"
cd "$pkgname-$pkgver"
for patch in ../*.patch; do
if [ ! -f "$patch" ]; then
break;
else
patch -p1 -i "$patch"
fi
done
}
build() {
cd "$pkgname-$pkgver"
./autogen.sh --prefix=/usr
make
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
cd "$pkgdir"/usr
rm -rf share/man/man5/default.cfg.5 \
share/man/man6/chocolate-{server,setup}.6
}

View File

@ -0,0 +1,17 @@
post_install() {
cat <<EOF
To install game data (*.wad files), there are two main locations for
the engine to easily find them:
* For all users: /usr/share/games/doom
* For a single user: ~/.local/share/games/doom
Files such as doom2.wad, heretic.wad, hexen.wad, and strife1.wad are
appropriate for installation and usage with Chocolate engines.
In order to allow co-existence with Chocolate Doom, the following
manual pages have been removed:
default.cfg heretic.cfg hexen.cfg strife.cfg
They are identical to and are available in the Chocolate Doom packages
instead.
EOF
}