1 #Maintainer: Jarek jarek@eden.rutgers.edu
5 pkgdesc="Script to convert python3 code to python2. Counterpart to 2to3. This is the latest dev version"
8 url=('http://www.startcodon.com/wordpress/?cat=8')
10 makedepends=('mercurial' 'python')
11 source=('Makefile.patch')
13 md5sums=('7e9281f41d52220c5a592a5ed696fb38')
16 merc_root='https://bitbucket.org/amentajo/lib3to2'
20 msg "Connecting to Mercurial server...."
22 if [ -d $merc_repo ] ; then
25 msg "The local files are updated."
27 msg "hg clone $merc_root $merc_repo"
28 hg clone $merc_root $merc_repo
31 msg "Mercurial checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "$srcdir/$merc_repo-build"
35 cp -r "$srcdir/$merc_repo" "$srcdir/$merc_repo-build"
36 cd "$srcdir/$merc_repo-build"
40 cd "$srcdir/$merc_repo-build"
42 make DESTDIR=$pkgdir python2
43 msg "Patching Makefile"
44 patch -p0 < ../Makefile.patch
45 msg "make DESTDIR=$pkgdir install"
46 make DESTDIR=$pkgdir install