updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / cgi-speedycgi / PKGBUILD
blobb2cd78fd7b072cad48f89cacab99849928367568
1 pkgname=cgi-speedycgi
2 pkgver=2.22
3 pkgrel=1
4 pkgdesc="Speed up perl scripts by running them persistently."
5 url="http://daemoninc.com/SpeedyCGI/"
6 arch=('x86_64' 'i686')
7 license=('GPL')
8 depends=('perl')
9 install='cgi-speedycgi.install'
10 source=("http://www.cpan.org/modules/by-authors/id/H/HO/HORROCKS/CGI-SpeedyCGI-2.22.tar.gz"
11         "perl5-compile-fix.patch")
12 md5sums=('2f80df78874e3efa80f180923c4967a1'
13          '0ae1a121023f2a3c456fcea5a7a54ab2')
15 build() {
16   echo
17   read -p "The patch fixes compilation errors of the standalone speedycgi binary. 
18 Since mod_speedycgi cannot be built with the patch, so the selection was 
19 removed. Executables  will be installed to /usr/bin/site_perl, and 
20 symlinks for speedy and speedy_backend will be created in /usr/bin/.
22 Press any key to continue..."
23   echo
24   patch -p0 < ../perl5-compile-fix.patch
25   cd "${srcdir}/CGI-SpeedyCGI-${pkgver}"
26   perl Makefile.PL
27   make
30 package() {
31   cd "${srcdir}/CGI-SpeedyCGI-${pkgver}"
32   make DESTDIR="${pkgdir}" install
33   install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"