blob: ae7a6625ff9dd4572badcf2f04881c42de468694 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: Alex Raschi <raschi.alex@gmail.com>
pkgname=chocolate-doom
pkgver=3.0.0
pkgrel=0
pkgdesc="Portable release of Doom, Heretic, Hexen, and Strife"
url="https://www.chocolate-doom.org"
arch="all"
license="GPL-2.0-or-later"
depends=""
makedepends="sdl2-dev sdl2_net-dev sdl2_mixer-dev py-imaging libpng-dev
libsamplerate-dev"
subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp:noarch"
options="!check" # no test suite
source="https://www.chocolate-doom.org/downloads/$pkgver/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
bashcomp() {
pkgdesc="Bash completion for $pkgname"
depends=""
install_if="bash-completion $pkgname=$pkgver-r$pkgrel"
mkdir -p "$subpkgdir"/usr/share
mv "$pkgdir"/usr/share/bash-completion "$subpkgdir"/usr/share/
}
sha512sums="41f235c0d84ef21070636ad0610e97898dfd366fae7f9244bd2aebf8974db98dcf55f70bcab2f93589b9bf31dd421db32e8af88e0f8e0a655d2b9f1d4ead2afd chocolate-doom-3.0.0.tar.gz"
|