updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / yadex / PKGBUILD
blobcff3a812d77697e5129f2454f169b553b8214b30
1 # Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
3 pkgname=yadex
4 pkgver=1.7.0
5 pkgrel=4
6 pkgdesc="A Doom level editor with additional support for Heretic, Hexen and Strife"
7 arch=('i686' 'x86_64')
8 url="http://www.teaser.fr/~amajorel/yadex/"
9 license=('GPL')
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')
25 build() {
26   cd $pkgname-$pkgver
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}" \
37         || return 1
39   make DESTDIR="$pkgdir" install