python-tkinter: fix x86 build.

This commit is contained in:
Juan RP 2014-08-26 12:28:52 +02:00
parent a81ab4705f
commit f95b4a99f3
1 changed files with 6 additions and 1 deletions

View File

@ -60,12 +60,17 @@ do_install() {
# We only care for the idle and tk modules.
vmkdir usr/bin
vmkdir usr/lib/python2.7/lib-dynload
if [ -e ${wrksrc}/${pkgname}-${version}-install/usr/lib32 ]; then
_libdir=lib32
else
_libdir=lib
fi
mv ${wrksrc}/${pkgname}-${version}-install/usr/bin/idle ${DESTDIR}/usr/bin
mv ${wrksrc}/${pkgname}-${version}-install/usr/lib/python2.7/idlelib \
${DESTDIR}/usr/lib/python2.7/
mv ${wrksrc}/${pkgname}-${version}-install/usr/lib/python2.7/lib-tk \
${DESTDIR}/usr/lib/python2.7/
mv ${wrksrc}/${pkgname}-${version}-install/usr/lib/python2.7/lib-dynload/_tkinter.so \
mv ${wrksrc}/${pkgname}-${version}-install/usr/${_libdir}/python2.7/lib-dynload/_tkinter.so \
${DESTDIR}/usr/lib/python2.7/lib-dynload/
}