mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
extra/qt3 to 3.3.8b-6
This commit is contained in:
parent
d32f322286
commit
f0fee13952
1 changed files with 12 additions and 9 deletions
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
pkgname=qt3
|
pkgname=qt3
|
||||||
pkgver=3.3.8b
|
pkgver=3.3.8b
|
||||||
pkgrel=5
|
pkgrel=6
|
||||||
epoch=1
|
epoch=1
|
||||||
pkgdesc="A cross-platform application and UI framework"
|
pkgdesc="A cross-platform application and UI framework"
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
|
@ -39,13 +39,8 @@ sha1sums=('745def6250dc7f337dbb265e20bf38dcb41fd854'
|
||||||
# qt-copy-kde-patches come from http://websvn.kde.org/trunk/qt-copy/patches/
|
# qt-copy-kde-patches come from http://websvn.kde.org/trunk/qt-copy/patches/
|
||||||
# other qt-patches come from fedora and gentoo
|
# other qt-patches come from fedora and gentoo
|
||||||
|
|
||||||
build() {
|
prepare() {
|
||||||
export QTDIR="${srcdir}"/qt-x11-free-${pkgver}
|
cd qt-x11-free-${pkgver}
|
||||||
export PATH=${QTDIR}/bin:${PATH}
|
|
||||||
export LD_LIBRARY_PATH=${QTDIR}/lib:${LD_LIBRARY_PATH}
|
|
||||||
export QMAKESPEC=$QTDIR/mkspecs/linux-g++
|
|
||||||
|
|
||||||
cd "${srcdir}"/qt-x11-free-${pkgver}
|
|
||||||
# apply qt patches from kde.org
|
# apply qt patches from kde.org
|
||||||
for i in ../qt-copy-kde-patches/*; do
|
for i in ../qt-copy-kde-patches/*; do
|
||||||
patch -p0 -i $i
|
patch -p0 -i $i
|
||||||
|
@ -67,12 +62,20 @@ build() {
|
||||||
sed -i "s|-O2|$CXXFLAGS|" mkspecs/linux-g++{,-32,-64}/qmake.conf
|
sed -i "s|-O2|$CXXFLAGS|" mkspecs/linux-g++{,-32,-64}/qmake.conf
|
||||||
sed -i "s|-I. |$CXXFLAGS -I. |" qmake/Makefile.unix
|
sed -i "s|-I. |$CXXFLAGS -I. |" qmake/Makefile.unix
|
||||||
sed -i "s|read acceptance|acceptance=yes|" configure
|
sed -i "s|read acceptance|acceptance=yes|" configure
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
export QTDIR="${srcdir}"/qt-x11-free-${pkgver}
|
||||||
|
export PATH=${QTDIR}/bin:${PATH}
|
||||||
|
export LD_LIBRARY_PATH=${QTDIR}/lib:${LD_LIBRARY_PATH}
|
||||||
|
export QMAKESPEC=$QTDIR/mkspecs/linux-g++
|
||||||
|
|
||||||
if [ "$CARCH" = "x86_64" ]; then
|
if [ "$CARCH" = "x86_64" ]; then
|
||||||
export ARCH="-64"
|
export ARCH="-64"
|
||||||
else unset ARCH
|
else unset ARCH
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cd qt-x11-free-${pkgver}
|
||||||
./configure \
|
./configure \
|
||||||
-prefix /usr \
|
-prefix /usr \
|
||||||
-bindir /usr/lib/qt3/bin \
|
-bindir /usr/lib/qt3/bin \
|
||||||
|
@ -98,7 +101,7 @@ build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "${srcdir}"/qt-x11-free-${pkgver}
|
cd qt-x11-free-${pkgver}
|
||||||
make INSTALL_ROOT="${pkgdir}" install
|
make INSTALL_ROOT="${pkgdir}" install
|
||||||
sed -i -e "s|-L${srcdir}/qt-x11-free-${pkgver}/lib ||g" -e "s|${srcdir}/||g" "${pkgdir}"/usr/lib/*.prl
|
sed -i -e "s|-L${srcdir}/qt-x11-free-${pkgver}/lib ||g" -e "s|${srcdir}/||g" "${pkgdir}"/usr/lib/*.prl
|
||||||
rm -rf "${pkgdir}"/usr/share/qt3/{phrasebooks,templates,translations}
|
rm -rf "${pkgdir}"/usr/share/qt3/{phrasebooks,templates,translations}
|
||||||
|
|
Loading…
Reference in a new issue