parent
cd490414c6
commit
d1f65651ed
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'python-PyQt4'
|
||||
pkgname=python-PyQt4
|
||||
version=4.12.1
|
||||
revision=2
|
||||
revision=3
|
||||
lib32disabled=yes
|
||||
wrksrc="PyQt4_gpl_x11-${version}"
|
||||
hostmakedepends="pkg-config python python3"
|
||||
|
@ -76,15 +76,19 @@ do_install() {
|
|||
# install python-pyqt4
|
||||
make -C pyqt4-${py2_ver} DESTDIR=${DESTDIR} INSTALL_ROOT=${DESTDIR} install
|
||||
# create versioned pyuic4 wrapper
|
||||
sed -i -e 's,/usr/bin/python2.7,/usr/bin/python2,' \
|
||||
-e "s,${XBPS_CROSS_TRIPLET}/,," ${DESTDIR}/usr/bin/pyuic4
|
||||
sed -i -e 's,/usr/bin/python2.7,/usr/bin/python2,' ${DESTDIR}/usr/bin/pyuic4
|
||||
if [ -n "$CROSS_BUILD" ]; then
|
||||
sed -i -e "s,${XBPS_CROSS_TRIPLET}/,," ${DESTDIR}/usr/bin/pyuic4
|
||||
fi
|
||||
mv ${DESTDIR}/usr/bin/{,python2-}pyuic4
|
||||
|
||||
# install python3-pyqt4
|
||||
make -C pyqt4-${py3_ver} DESTDIR=${DESTDIR} INSTALL_ROOT=${DESTDIR} install
|
||||
# create versioned pyuic4 wrapper
|
||||
sed -i -e 's,/usr/bin/python3[.0-9]*,/usr/bin/python3,' \
|
||||
-e "s,${XBPS_CROSS_TRIPLET}/,," ${DESTDIR}/usr/bin/pyuic4
|
||||
sed -i -e 's,/usr/bin/python3[.0-9]*,/usr/bin/python3,' ${DESTDIR}/usr/bin/pyuic4
|
||||
if [ -n "$CROSS_BUILD" ]; then
|
||||
sed -i -e "s,${XBPS_CROSS_TRIPLET}/,," ${DESTDIR}/usr/bin/pyuic4
|
||||
fi
|
||||
mv ${DESTDIR}/usr/bin/{,python3-}pyuic4
|
||||
|
||||
cd pyqt4-${py2_ver}
|
||||
|
|
Loading…
Reference in New Issue