python: move python2 symlink back into the package

This commit is contained in:
Alessio Sergi 2016-04-25 16:44:34 +02:00
parent 1437212fa0
commit 8b5da4856f
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
#
pkgname=python
version=2.7.11
revision=8
revision=9
wrksrc="Python-${version}"
hostmakedepends="pkg-config"
makedepends="
@ -24,7 +24,6 @@ alternatives="
python:2to3:/usr/bin/2to3-2.7
python:pydoc:/usr/bin/pydoc2.7
python:python:/usr/bin/python2.7
python:python2:/usr/bin/python2.7
python:python.1:/usr/share/man/man1/python2.7.1"
pre_configure() {
@ -64,6 +63,7 @@ do_build() {
do_install() {
export PATH="$PATH:$wrksrc/hostpython"
make DESTDIR=${DESTDIR} altinstall
ln -sf python2.7 ${DESTDIR}/usr/bin/python2
ln -sf python2.7-config ${DESTDIR}/usr/bin/python-config
}