1 #Maintainer Jekyll Wu <adaptee [at] gmail [dot] com>
6 pkgdesc="The KDE 'Krazy' Checker"
8 url="http://www.kde.org/"
10 depends=('qt' 'perl-tie-ixhash' 'perl-xml-libxml' 'perl-html-parser' 'perl-yaml' 'desktop-file-utils')
12 _gitroot="git://gitorious.org/krazy/krazy.git"
18 msg "Connecting to ${_gitname} GIT server..."
19 if [ -d ${_gitname} ]; then
20 cd ${_gitname} && git pull origin master
21 msg "The local files are updated."
23 git clone ${_gitroot} ${_gitname}
26 msg "GIT checkout done or server timeout. Preparing sources..."
27 rm -rf "${srcdir}/${_gitname}-build"
28 cp -r "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
33 cd "${srcdir}/${_gitname}-build"
35 perl Makefile.PL PREFIX=/usr
37 make DESTDIR="${pkgdir}/" install || return 1
39 mv -f ${pkgdir}/usr/bin/site_perl/krazy2* ${pkgdir}/usr/bin/
40 rmdir ${pkgdir}/usr/bin/site_perl
42 V=`perl -e 'printf "%vd", $^V'`
43 ln -sf /usr/share/perl5/site_perl/${V}/Krazy ${pkgdir}/usr/lib/Krazy
46 make PREFIX=/usr DESTDIR="${pkgdir}/" install || return 1
50 make PREFIX=/usr DESTDIR="${pkgdir}/" install || return 1
54 make PREFIX=/usr DESTDIR="${pkgdir}/" install || return 1
60 make INSTALL_ROOT="${pkgdir}/usr/" install || return 1
64 make PREFIX=/usr DESTDIR="${pkgdir}/" install || return 1
67 mkdir -p "$pkgdir/usr/share/dtd"
69 cp *.dtd "$pkgdir/usr/share/dtd"
72 mkdir -p "$pkgdir/usr/share/xsl"
74 cp *.xsl "$pkgdir/usr/share/xsl"
77 mkdir -p "$pkgdir/usr/conf"
78 cp conf/settings.yaml "$pkgdir/usr/conf"