1 # Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
6 pkgdesc="A Doom level editor with additional support for Heretic, Hexen and Strife"
8 url="http://www.teaser.fr/~amajorel/yadex/"
10 depends=('libx11' 'gcc-libs')
11 optdepends=('freedoom' 'doom1-wad')
12 backup=(etc/yadex.cfg)
13 install=$pkgname.install
14 source=(http://www.teaser.fr/~amajorel/$pkgname/$pkgname-$pkgver.tar.gz \
15 http://glbsp.sourceforge.net/yadex/Yadex_170_ALL.diff \
16 $pkgname-$pkgver-fixbuild.patch \
17 $pkgname-$pkgver-yadex.cfg.patch \
18 $pkgname-$pkgver-make.patch)
19 md5sums=('d341abe066525394082edfd520af86ae'
20 '1cd2048c3ee9aa23da05c1ebb417de77'
21 'fb94f08672914624daa4675b0587573d'
22 'c15f66dcc2226b368f0a3bc4e7035278'
23 '2dbdbff746cef8acdc1e853c7043fa19')
28 patch -Np1 -i ../Yadex_170_ALL.diff || return 1
29 patch -Np1 -i ../$pkgname-$pkgver-fixbuild.patch || return 1
30 patch -Np1 -i ../$pkgname-$pkgver-yadex.cfg.patch || return 1
31 patch -Np1 -i ../$pkgname-$pkgver-make.patch || return 1
33 ./configure --prefix=/usr
35 make CFLAGS="${CFLAGS}" \
36 CXXFLAGS="${CXXFLAGS}" \
39 make DESTDIR="$pkgdir" install