1 # Maintainer: Christos Nouskas <nous at archlinux dot us>
2 # Contributor: Jakub Luzny <limoto94@gmail.com>
7 pkgdesc="A lightweight, cross-platform Qt4 WebKit browser. Latest GIT snapshot, automatically optimized for local architecture."
9 url="http://arora.googlecode.com/"
15 source=(facebook.patch)
16 sha256sums=('d510a740d5650aabba35b741b4106d2e1ed66ee72ef8afe16de0d857db4fdac6')
18 _gitroot="git://github.com/Arora/arora.git"
23 msg "Connecting to GIT server...."
25 if [ -d "$srcdir/$_gitname" ] ; then
26 cd $_gitname && git pull origin
27 msg "The local files are updated."
32 msg "GIT checkout done or server timeout"
33 msg "Starting make..."
35 cd "$srcdir/$_gitname"
37 # Fix facebook modify.php nirvana
38 patch -Np1 < $startdir/facebook.patch
41 make sub-src-qmake_all
43 # Comment out the next block if you don't want optimizations
45 CPU=`grep --color=none march <<<$CFLAGS | sed -e "s/.*march=\(\w*\).*/\1/"`
47 msg "Optimizing for $CPU"
48 sed -i "s/-O2/-O2\ -march=$CPU/" `grep -rl --color=none "\\-O2" src`
50 msg "Optimizing with -march=native"
51 sed -i "s/-O2/-O2\ -march=native/" `grep -rl --color=none "\\-O2" *`
65 cd "$srcdir/$_gitname"
66 make INSTALL_ROOT="$pkgdir" install