python: move python2 symlink back into the package
This commit is contained in:
parent
1437212fa0
commit
8b5da4856f
|
@ -4,7 +4,7 @@
|
||||||
#
|
#
|
||||||
pkgname=python
|
pkgname=python
|
||||||
version=2.7.11
|
version=2.7.11
|
||||||
revision=8
|
revision=9
|
||||||
wrksrc="Python-${version}"
|
wrksrc="Python-${version}"
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="
|
makedepends="
|
||||||
|
@ -24,7 +24,6 @@ alternatives="
|
||||||
python:2to3:/usr/bin/2to3-2.7
|
python:2to3:/usr/bin/2to3-2.7
|
||||||
python:pydoc:/usr/bin/pydoc2.7
|
python:pydoc:/usr/bin/pydoc2.7
|
||||||
python:python:/usr/bin/python2.7
|
python:python:/usr/bin/python2.7
|
||||||
python:python2:/usr/bin/python2.7
|
|
||||||
python:python.1:/usr/share/man/man1/python2.7.1"
|
python:python.1:/usr/share/man/man1/python2.7.1"
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
|
@ -64,6 +63,7 @@ do_build() {
|
||||||
do_install() {
|
do_install() {
|
||||||
export PATH="$PATH:$wrksrc/hostpython"
|
export PATH="$PATH:$wrksrc/hostpython"
|
||||||
make DESTDIR=${DESTDIR} altinstall
|
make DESTDIR=${DESTDIR} altinstall
|
||||||
|
ln -sf python2.7 ${DESTDIR}/usr/bin/python2
|
||||||
ln -sf python2.7-config ${DESTDIR}/usr/bin/python-config
|
ln -sf python2.7-config ${DESTDIR}/usr/bin/python-config
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue