1 ## build reinteract to work with python2 on Arch
8 pkgdesc="system for interactive experimentation with python."
9 url="http://www.reinteract.org/"
11 depends=('pygtk' 'python2-numpy' 'python2-matplotlib' 'sox')
16 _gitroot="git://git.fishsoup.net/reinteract"
21 msg "Connecting to ${_gitroot} GIT server...."
23 if [ -d "$srcdir"/$_gitname ] ; then
24 cd $_gitname && git pull origin
25 msg "The local files are updated."
27 git clone $_gitroot || return 1
30 msg "GIT checkout done or server timeout"
31 msg "Starting make..."
34 rm -rf reinteract.build
35 cp -r reinteract reinteract.build
36 cd reinteract.build || return 1
38 # force config with python2
39 PYTHON=/usr/bin/python2 ./autogen.sh
40 PYTHON=/usr/bin/python2 ./configure --prefix='/usr'
44 cd "$srcdir"/reinteract.build
45 make install DESTDIR="$pkgdir" || return 1
47 # cruchbang for python2
48 sed -e 's/env python/env python2/' -i "$pkgdir"/usr/bin/${_gitname}