1 # Maintainer: Alexander Rødseth <rodseth@gmail.com>
2 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 # Contributor: Martin Lefebvre <dadexter@gmail.com>
7 pkgdesc="A text mode based programming environment"
9 url="http://thekonst.net/motor/"
11 depends=('ncurses' 'cvs' 'automake' 'autoconf' 'gdb' 'make')
12 makedepends=('addinclude')
13 source=("http://thekonst.net/download/$pkgname-$pkgver.tar.bz2"
15 md5sums=('0fcf7ce0386b269e8bdbb7a86e9bee19'
16 'b3712050f95092caaa2ec3c826f407e1')
19 cd "$srcdir/$pkgname-$pkgver"
20 patch -Np1 -i ../void-compile.patch || return 1
21 addinclude -n --top src/debugger/motordebugger.cc "#include <memory>"
22 sed -i "s/strndup/strndup_2/" parser/src/strfn.c
23 sed -i "s/strndup/strndup_2/" parser/include/strfn.h
24 sed -i "s/strndup/strndup_2/" parser/src/parser.c
25 ./configure --prefix=/usr --disable-nls || return 1
26 make CFLAGS='-g -pg -O1' || return 1
27 make prefix=$pkgdir/usr install || return 1
28 install -Dm644 COPYING \
29 "$pkgdir/usr/share/licenses/$pkgname/COPYING" || return 1
31 # vim:set ts=2 sw=2 et: