diff python/python2/python2.sh @ 535:830d949b71a6

python: use new FHS
author David Demelier <markand@malikania.fr>
date Wed, 10 Apr 2019 20:20:00 +0200
parents b3d11a5ed175
children bad483aace64
line wrap: on
line diff
--- a/python/python2/python2.sh	Wed Apr 10 20:18:00 2019 +0200
+++ b/python/python2/python2.sh	Wed Apr 10 20:20:00 2019 +0200
@@ -51,7 +51,7 @@
 	./configure \
 		--build=$CBUILD \
 		--host=$CHOST \
-		--prefix=/usr \
+		--prefix=/ \
 		--disable-static \
 		--enable-shared \
 		--with-system-expat \
@@ -59,13 +59,13 @@
 		$with_ipv6
 	make
 	make altinstall maninstall DESTDIR=$DESTDIR
-	ln -sf python2.7 $DESTDIR/usr/bin/python2
+	ln -sf python2.7 $DESTDIR/bin/python2
 
 	# Avoid conflicts with python 3.
-	rm -f $DESTDIR/usr/bin/2to3
-	mv $DESTDIR/usr/bin/smtpd.py{,2.7}
-	mv $DESTDIR/usr/bin/idle{,2.7}
-	mv $DESTDIR/usr/bin/pydoc{,2.7}
+	rm -f $DESTDIR/bin/2to3
+	mv $DESTDIR/bin/smtpd.py{,2.7}
+	mv $DESTDIR/bin/idle{,2.7}
+	mv $DESTDIR/bin/pydoc{,2.7}
 
 	popd
 	rm -rf Python-$PKGVERSION