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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
# Maintainer: Mike Swanson <mikeonthecomputer@gmail.com>
pkgname=chocolate-doom-git
_pkgname=${pkgname/-git/}
true && pkgname=(chocolate-{doom,heretic,hexen,strife,common}-git)
pkgver=2.0.0.178.g1591773
pkgrel=1
arch=('i686' 'x86_64')
url="http://www.chocolate-doom.org/"
license=('GPL2')
makedepends=('git' 'autoconf' 'python')
install=${_pkgname}.install
source=(git+https://github.com/chocolate-doom/chocolate-doom.git)
sha256sums=('SKIP')
pkgver() {
cd "${_pkgname}"
local version=$(git describe)
local version=${version/chocolate-doom-/}
local version=${version//-/.}
echo $version
}
build() {
cd "${_pkgname}"
# Change binary dir from /usr/games to /usr/bin
sed 's|/games|/bin|g' -i src{,/setup}/Makefile.am
./autogen.sh --prefix=/usr
make
}
package_chocolate-common-git() {
pkgdesc="Files shared in common with Chocolate Doom-based games."
depends=('sdl_net')
conflicts=(chocolate-common)
cd "${_pkgname}"
make DESTDIR="${pkgdir}" install
install -dm 755 "${pkgdir}"/usr/share/games/doom
cd "${pkgdir}"/usr/bin
mv chocolate-doom-setup chocolate-setup
rm -f chocolate-{doom,heretic,hexen,strife}{,-setup}
cd "${pkgdir}"/usr/share
rm -rf doc man/man5
rm -rf applications/chocolate-doom.desktop applications/screensavers \
icons/chocolate-doom.png
cd man/man6
rm -f chocolate-{doom,heretic,hexen,strife}{,-setup}.6
}
package_chocolate-doom-git() {
pkgdesc="Doom port accurately reproducing the original DOS EXEs."
depends=(${depends[@]} 'chocolate-common-git')
conflicts=(chocolate-doom)
cd "${_pkgname}"
make DESTDIR="${pkgdir}" install
cd "${pkgdir}"/usr/bin
rm -f chocolate-{heretic,hexen,strife,server} chocolate*setup
ln -s chocolate{,-doom}-setup
cd "${pkgdir}"/usr/share
rm -rf doc/chocolate-{heretic,hexen,strife}
rm -f applications/chocolate-setup.desktop icons/chocolate-setup.png
rm -f man/man?/chocolate-{heretic,hexen,strife,setup,server}* \
man/man5/{heretic,hexen,strife}.cfg*
}
package_chocolate-heretic-git() {
pkgdesc="Heretic port accurately reproducing the original DOS EXE."
depends=(${depends[@]} 'chocolate-common-git')
conflicts=(chocolate-heretic)
cd "${_pkgname}"
make DESTDIR="${pkgdir}" install
cd "${pkgdir}"/usr/bin
rm -f chocolate-{doom,hexen,strife,server} chocolate*setup
ln -s chocolate{,-heretic}-setup
cd "${pkgdir}"/usr/share
rm -rf doc/chocolate-{doom,hexen,strife}
rm -rf applications icons
rm -f man/man?/chocolate-{doom,hexen,strife,setup,server}* \
man/man5/{default,hexen,strife}.cfg*
}
package_chocolate-hexen-git() {
pkgdesc="Hexen port accurately reproducing the original DOS EXE."
depends=(${depends[@]} 'chocolate-common-git')
conflicts=(chocolate-hexen)
cd "${_pkgname}"
make DESTDIR="${pkgdir}" install
cd "${pkgdir}"/usr/bin
rm -f chocolate-{doom,heretic,strife,server} chocolate*setup
ln -s chocolate{,-hexen}-setup
cd "${pkgdir}"/usr/share
rm -rf doc/chocolate-{doom,heretic,strife}
rm -rf applications icons
rm -f man/man?/chocolate-{doom,heretic,strife,setup,server}* \
man/man5/{default,heretic,strife}.cfg*
}
package_chocolate-strife-git() {
pkgdesc="Strife port accurately reproducing the original DOS EXEs."
depends=(${depends[@]} 'chocolate-common-git')
conflicts=(chocolate-strife)
cd "${_pkgname}"
make DESTDIR="${pkgdir}" install
cd "${pkgdir}"/usr/bin
rm -f chocolate-{doom,heretic,hexen,server} chocolate*setup
ln -s chocolate{,-strife}-setup
cd "${pkgdir}"/usr/share
rm -rf doc/chocolate-{doom,heretic,hexen}
rm -rf applications icons
rm -f man/man?/chocolate-{doom,heretic,hexen,setup,server}* \
man/man5/{default,heretic,hexen}.cfg*
}
pkgdesc="Doom, Heretic, Hexen, Strife port accurately reproducing the originals."
depends=('libsamplerate' 'sdl_mixer' 'sdl_net')
|