1 # Contributor: Will Chappell <mr.chapendi@gmail.com>
5 pkgdesc="Ikiwiki is a wiki compiler. It converts wiki pages into HTML pages suitable for publishing on a website."
7 url="http://ikiwiki.info/"
10 depends=(perl-text-markdown perl-cgi-session perl-cgi-formbuilder perl-timedate
11 perl-html-parser perl-html-scrubber perl-mail-sendmail perl-time-duration
12 perl-uri perl-html-template perl-locale-gettext)
16 _gitroot="git://git.ikiwiki.info/"
17 _gitname="git.ikiwiki.info"
21 msg "Connecting to GIT server...."
23 if [ -d $_gitname ] ; then
24 cd $_gitname && git pull origin
25 msg "The local files are updated."
30 msg "GIT checkout done or server timeout"
31 msg "Starting make..."
33 rm -rf "$srcdir/$_gitname-build"
34 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35 cd "$srcdir/$_gitname-build"
41 eval `perl -V:archname`
42 # Force module installation to "current" perl directories
43 perl Makefile.PL PREFIX="/usr" \
44 INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \
45 INSTALLSITELIB=/usr/lib/perl5/site_perl/current \
46 INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname}
47 make PREFIX="/usr" || return 1
48 make install DESTDIR=${startdir}/pkg || return 1
50 # otherwise perl breaks
51 find $startdir/pkg -name '.packlist' -exec rm '{}' \;
52 find $startdir/pkg -name '*.pod' -exec rm '{}' \;