python3.4: register 'python3' alternatives group

Thanks chris2 and xtraeme.
This commit is contained in:
Alessio Sergi 2016-04-25 17:20:25 +02:00
parent 159d041bb4
commit 1dda7301a5
1 changed files with 9 additions and 5 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'python3.4'
pkgname=python3.4
version=3.4.4
revision=4
revision=5
wrksrc="Python-${version}"
short_desc="Interpreted, interactive, object-oriented programming language (${version%.*} series)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
@ -20,14 +20,16 @@ depends="ca-certificates"
alternatives="
python:idle:/usr/bin/idle3.4
python:idle3:/usr/bin/idle3.4
python:2to3:/usr/bin/2to3-3.4
python:pydoc:/usr/bin/pydoc3.4
python:pydoc3:/usr/bin/pydoc3.4
python:python:/usr/bin/python3.4
python:python3:/usr/bin/python3.4
python:python.1:/usr/share/man/man1/python3.4.1
python:python3.1:/usr/share/man/man1/python3.4.1"
python3:idle3:/usr/bin/idle3.4
python3:pydoc3:/usr/bin/pydoc3.4
python3:python3:/usr/bin/python3.4
python3:python3-config:/usr/bin/python3.4-config
python3:python3.pc:/usr/lib/pkgconfig/python-3.4.pc
python3:python3.1:/usr/share/man/man1/python3.4.1"
pre_configure() {
# Ensure that internal copies of zlib, expat and libffi are not used
@ -68,6 +70,8 @@ do_install() {
rm -f ${DESTDIR}/usr/bin/2to3
rm -f ${DESTDIR}/usr/bin/{idle,pydoc,python}3
rm -f ${DESTDIR}/usr/share/man/man1/python3.1
rm -f ${DESTDIR}/usr/bin/python3-config
rm -f ${DESTDIR}/usr/lib/pkgconfig/python3.pc
ln -sf ../../libpython${version%.*}m.so \
${DESTDIR}/usr/lib/python${version%.*}/config-${version%.*}m/libpython${version%.*}m.so