comparison python/python2/python2.sh @ 606:25cecc6dca48

vanilla: use POSIX shell and busybox tar
author David Demelier <markand@malikania.fr>
date Thu, 18 Jul 2019 07:26:43 +0200
parents e1b73f64408d
children 2929b2af4c15
comparison
equal deleted inserted replaced
605:860ab66f5f71 606:25cecc6dca48
40 fi 40 fi
41 41
42 build() 42 build()
43 { 43 {
44 rm -rf Python-$PKGVERSION 44 rm -rf Python-$PKGVERSION
45 tar xvaf Python-$PKGVERSION.tar.xz 45 tar xvf Python-$PKGVERSION.tar.xz
46 pushd Python-$PKGVERSION 46 cd Python-$PKGVERSION
47 47
48 CC="$CC" \ 48 CC="$CC" \
49 CFLAGS="$CFLAGS" \ 49 CFLAGS="$CFLAGS" \
50 LDFLAGS="$LDFLAGS" \ 50 LDFLAGS="$LDFLAGS" \
51 LIBS="$LIBS" \ 51 LIBS="$LIBS" \
66 rm -f $DESTDIR/bin/2to3 66 rm -f $DESTDIR/bin/2to3
67 mv $DESTDIR/bin/smtpd.py{,2.7} 67 mv $DESTDIR/bin/smtpd.py{,2.7}
68 mv $DESTDIR/bin/idle{,2.7} 68 mv $DESTDIR/bin/idle{,2.7}
69 mv $DESTDIR/bin/pydoc{,2.7} 69 mv $DESTDIR/bin/pydoc{,2.7}
70 70
71 popd 71 cd ..
72 rm -rf Python-$PKGVERSION 72 rm -rf Python-$PKGVERSION
73 } 73 }