mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-24 01:42:15 +08:00
64 lines
2.2 KiB
Bash
64 lines
2.2 KiB
Bash
# Lib32 Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (x86_64): Daniele Cocca <jmc@chakra-project.org>
|
|
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
|
|
|
_pkgbasename=qtwebkit
|
|
pkgname="lib32-${_pkgbasename}"
|
|
pkgver=2.2.2
|
|
pkgrel=2
|
|
pkgdesc="Standalone QtWebKit version. (ELF32)"
|
|
arch=('x86_64')
|
|
url="http://trac.webkit.org/wiki/QtWebKit"
|
|
license=('GPL3' 'LGPL')
|
|
depends=('lib32-qt' 'lib32-gstreamer0.10' 'lib32-gstreamer0.10-base'
|
|
"${_pkgbasename}=${pkgver}")
|
|
makedepends=('gperf' 'phonon' 'perl' 'python'
|
|
'lib32-sqlite3' 'lib32-fontconfig' 'lib32-mesa' 'lib32-libglapi')
|
|
#source=("http://get.qt.nokia.com/qtwebkit/QtWebKit-${pkgver}.tar.gz")
|
|
source=("http://chakra-linux.org/sources/${_pkgbasename}/qtwebkit-${pkgver}-source.tar.gz"
|
|
"http://chakra-linux.org/sources/${_pkgbasename}/qwebview-4.8.0.tar.bz2"
|
|
'glib.patch')
|
|
md5sums=('86702e3a908e2968e87baa6600cbf31f'
|
|
'13a4ac75d98452c2bf7ef710353e91d8'
|
|
'dece50d952593e301007432962ba3000')
|
|
|
|
build() {
|
|
cd "${srcdir}/qtwebkit-${pkgver}-source"
|
|
|
|
patch -p1 -i "${srcdir}"/glib.patch
|
|
|
|
export QT4DIR=$srcdir/$_pkgfqn
|
|
export LD_LIBRARY_PATH=${QT4DIR}/lib:${LD_LIBRARY_PATH}
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
# some of those are likely unnecessary, but I'm too lazy to find and remove them
|
|
sed -i "/^QMAKE_LINK\s/s|g++|g++ -m32|g" mkspecs/common/g++-base.conf
|
|
sed -i "s|-O2|${CXXFLAGS} -m32|" mkspecs/common/g++-base.conf
|
|
sed -i "s|-O2|${CXXFLAGS} -m32|" mkspecs/common/gcc-base.conf
|
|
sed -i "/^QMAKE_LFLAGS_RPATH/s| -Wl,-rpath,||g" mkspecs/common/gcc-base-unix.conf
|
|
sed -i "/^QMAKE_LFLAGS\s/s|+=|+= ${LDFLAGS} -m32|g" mkspecs/common/gcc-base.conf
|
|
sed -i "s|-Wl,-O1|-m32 -Wl,-O1|" mkspecs/common/g++-unix.conf
|
|
sed -e "s|-O2|$CXXFLAGS -m32|" \
|
|
-e "/^QMAKE_RPATH/s| -Wl,-rpath,||g" \
|
|
-e "/^QMAKE_LINK\s/s|g++|g++ -m32|g" \
|
|
-e "/^QMAKE_LFLAGS\s/s|+=|+= $LDFLAGS|g" \
|
|
-i mkspecs/common/g++.conf
|
|
|
|
# move headers
|
|
mv include Source/
|
|
|
|
cd Source
|
|
qmake
|
|
cd ../
|
|
|
|
make -C Source
|
|
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/qtwebkit-${pkgver}-source"
|
|
make INSTALL_ROOT="${pkgdir}" -C Source install
|
|
rm -rf "${pkgdir}"/usr/{include,share,lib}
|
|
}
|