diff python/python2/python2.sh @ 1216:6710613b88b9

misc: remove build function
author David Demelier <markand@malikania.fr>
date Wed, 29 Sep 2021 13:49:32 +0200
parents c9592a9a949b
children 57dc83a39b13
line wrap: on
line diff
--- a/python/python2/python2.sh	Wed Jul 28 15:24:46 2021 +0200
+++ b/python/python2/python2.sh	Wed Sep 29 13:49:32 2021 +0200
@@ -40,35 +40,32 @@
 	with_ipv6="--disable-ipv6"
 fi
 
-build()
-{
-	rm -rf Python-$PKGVERSION
-	tar xvf Python-$PKGVERSION.tar.xz
-	cd Python-$PKGVERSION
+rm -rf Python-$PKGVERSION
+tar xvf Python-$PKGVERSION.tar.xz
+cd Python-$PKGVERSION
 
-	CC="$CC" \
-	CFLAGS="$CFLAGS" \
-	LDFLAGS="$LDFLAGS" \
-	LIBS="$LIBS" \
-	./configure \
-		--build=$CBUILD \
-		--host=$CHOST \
-		--target=$CTARGET \
-		--prefix=/. \
-		--enable-shared \
-		--with-system-expat \
-		--with-system-ffi \
-		$with_ipv6
-	make
-	make DESTDIR=$DESTDIR altinstall maninstall
-	ln -sf python2.7 $DESTDIR/bin/python2
+CC="$CC" \
+CFLAGS="$CFLAGS" \
+LDFLAGS="$LDFLAGS" \
+LIBS="$LIBS" \
+./configure \
+	--build=$CBUILD \
+	--host=$CHOST \
+	--target=$CTARGET \
+	--prefix=/. \
+	--enable-shared \
+	--with-system-expat \
+	--with-system-ffi \
+	$with_ipv6
+make
+make DESTDIR=$DESTDIR altinstall maninstall
+ln -sf python2.7 $DESTDIR/bin/python2
 
-	# Avoid conflicts with Python 3.
-	rm -f $DESTDIR/bin/2to3
-	mv $DESTDIR/bin/smtpd.py $DESTDIR/bin/smtpd.py2.7
-	mv $DESTDIR/bin/idle $DESTDIR/bin/idle2.7
-	mv $DESTDIR/bin/pydoc $DESTDIR/bin/pydoc2.7
+# Avoid conflicts with Python 3.
+rm -f $DESTDIR/bin/2to3
+mv $DESTDIR/bin/smtpd.py $DESTDIR/bin/smtpd.py2.7
+mv $DESTDIR/bin/idle $DESTDIR/bin/idle2.7
+mv $DESTDIR/bin/pydoc $DESTDIR/bin/pydoc2.7
 
-	cd ..
-	rm -rf Python-$PKGVERSION
-}
+cd ..
+rm -rf Python-$PKGVERSION