From b28c069091f72f0cc89120483617733cf2c3f9cd Mon Sep 17 00:00:00 2001 From: moparisthebest Date: Sun, 23 Dec 2018 11:27:41 -0500 Subject: [PATCH] Add crispy-doom --- src/crispy-doom/.gitignore | 5 +++ src/crispy-doom/PKGBUILD | 48 +++++++++++++++++++++++++++++ src/crispy-doom/crispy-doom.install | 17 ++++++++++ 3 files changed, 70 insertions(+) create mode 100644 src/crispy-doom/.gitignore create mode 100644 src/crispy-doom/PKGBUILD create mode 100644 src/crispy-doom/crispy-doom.install diff --git a/src/crispy-doom/.gitignore b/src/crispy-doom/.gitignore new file mode 100644 index 0000000..6653078 --- /dev/null +++ b/src/crispy-doom/.gitignore @@ -0,0 +1,5 @@ +*.pkg.tar* +*.src.tar* +*.gz +src +pkg diff --git a/src/crispy-doom/PKGBUILD b/src/crispy-doom/PKGBUILD new file mode 100644 index 0000000..782e750 --- /dev/null +++ b/src/crispy-doom/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Mike Swanson + +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 +} diff --git a/src/crispy-doom/crispy-doom.install b/src/crispy-doom/crispy-doom.install new file mode 100644 index 0000000..402730f --- /dev/null +++ b/src/crispy-doom/crispy-doom.install @@ -0,0 +1,17 @@ +post_install() { +cat <