1 # Contributor: Andreas Schrafl <aschrafl@gmail.com>
5 pkgdesc="mod_pagespeed is an open-source Apache module that automatically optimizes web pages and resources on them. It does this by rewriting the resources using filters that implement web performance best practices. Webmasters and web developers can use mod_pagespeed to improve the performance of their web pages when serving content with the Apache HTTP Server."
7 url="http://code.google.com/speed/page-speed/docs/module.html"
8 license=('Apache 2.0 Open Source License')
10 makedepends=('depot_tools-svn' 'subversion' 'gcc' 'python2')
11 source=('pagespeed.conf.patch' 'cxcore.hpp.patch')
12 _srcpath="http://modpagespeed.googlecode.com/svn/tags/$pkgver/src"
13 backup=('etc/httpd/conf/extra/pagespeed.conf')
15 md5sums=('4b2081318636e228ceea09bac9cda7d4'
16 '511ccfbe950f2a9e88a9655139f152ca')
19 #cleanup the src directory
20 if [ -d "$srcdir/src" ]; then
24 if [ -f $srcdir/.gclient ]; then
30 # CFLAGS="\$CFLAGS -Wno-error=unused-but-set-variable"
32 gclient config $_srcpath
36 patch -p0 < cxcore.hpp.patch
39 make BUILDTYPE=Release
41 mkdir -p $pkgdir/var/www/wwwtmp/cache
42 mkdir -p $pkgdir/var/www/wwwtmp/files
43 chown -R http:http $pkgdir/var/www/wwwtmp
45 mkdir -p $pkgdir/etc/httpd/conf/extra
46 cat $srcdir/src/out/Release/install/common/pagespeed.load.template $srcdir/src/out/Release/install/common/pagespeed.conf.template > $pkgdir/etc/httpd/conf/extra/pagespeed.conf
47 cd $pkgdir/etc/httpd/conf/extra
48 patch -p0 < $srcdir/pagespeed.conf.patch
49 chown root:root $pkgdir/etc/httpd/conf/extra/pagespeed.conf
51 mkdir -p $pkgdir/etc/httpd/modules
52 cp $srcdir/src/out/Release/libmod_pagespeed.so $pkgdir/etc/httpd/modules/mod_pagespeed.so
53 chown root:root $pkgdir/etc/httpd/modules/mod_pagespeed.so
56 # vim:set ts=2 sw=2 et: