1 # Maintainer: Bennett Goble <nivardus@gmail.com>
6 pkgdesc="A static library that renders Web content into a memory buffer using an off-the-shelf version of the Qt application and UI framework. Official Linden Labs Mercurial repository."
8 url="http://wiki.secondlife.com/wiki/LLQtWebKit"
11 makedepends=('mercurial')
12 provides=('llqtwebkit-hg')
14 _hgroot="https://bitbucket.org/lindenlab"
19 qtver=`pacman -Qi qt | grep Version | awk '{print $3}' | sed -e 's/-*//g'`
21 msg "Connecting to mercurial repository and pulling changes..."
22 if [ -d $_hgrepo ]; then
26 hg clone ${_hgroot}/${_hgrepo}
29 msg "Starting make..."
31 rm -rf "$srcdir/$_hgrepo-build"
32 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
33 cd "$srcdir/$_hgrepo-build"
35 qmake -o Makefile -after "DEFINES+=VANILLA_QT" "CONFIG+=shared" "VERSION=$qtver" llqtwebkit.pro || return 1
38 install -D -m755 llqtwebkit.h $pkgdir/usr/include/llqtwebkit.h
39 install -D -m755 libllqtwebkit.so.$qtver $pkgdir/usr/lib/libllqtwebkit.so.$qtver
40 cp -P libllqtwebkit.so* $pkgdir/usr/lib