updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / motor / PKGBUILD
blob02724f0b0ae67d883f6d77f53b31880809a7afca
1 # Maintainer: Alexander Rødseth <rodseth@gmail.com>
2 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 # Contributor: Martin Lefebvre <dadexter@gmail.com>
4 pkgname=motor
5 pkgver=3.4.0
6 pkgrel=3
7 pkgdesc="A text mode based programming environment"
8 arch=('x86_64' 'i686')
9 url="http://thekonst.net/motor/"
10 license=('GPL2')
11 depends=('ncurses' 'cvs' 'automake' 'autoconf' 'gdb' 'make')
12 makedepends=('addinclude')
13 source=("http://thekonst.net/download/$pkgname-$pkgver.tar.bz2"
14         "void-compile.patch")
15 md5sums=('0fcf7ce0386b269e8bdbb7a86e9bee19'
16          'b3712050f95092caaa2ec3c826f407e1')
18 build() {
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
30
31 # vim:set ts=2 sw=2 et: