diff --git a/srcpkgs/python-tkinter/template b/srcpkgs/python-tkinter/template index 3c3f03e4323..73e1d2c14c1 100644 --- a/srcpkgs/python-tkinter/template +++ b/srcpkgs/python-tkinter/template @@ -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/ }