49 lines
1.3 KiB
Bash
49 lines
1.3 KiB
Bash
# Maintainer: Mike Swanson <mikeonthecomputer@gmail.com>
|
|
|
|
pkgname=crispy-doom
|
|
pkgdesc="Vanilla-compatible enhanced Doom engine"
|
|
pkgver=5.5
|
|
pkgrel=1
|
|
arch=('i686' 'x86_64')
|
|
url="http://fabiangreffrath.github.io/crispy-doom"
|
|
license=('GPL2')
|
|
depends=('hicolor-icon-theme' '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=('723c7fb15a4a7586506658889a9c309ca3a43bc1c078ce3cd72b976eeffef5f3c138fb6c2a8e2b40151ce5564f1a75e9c28d87bf6ea2c6be034ee73b7d5d3b44')
|
|
|
|
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
|
|
}
|