1 # Contributor: spider-mario <spidermario@free.fr>
5 pkgdesc="Scans KDE source code looking for issues."
7 url="http://ebn.kde.org/krazy/"
9 depends=('qt' 'perl-xml-libxml' 'perl-yaml' 'perl-tie-ixhash' 'perl-html-parser')
13 options=('!emptydirs')
15 _gitroot=git://gitorious.org/krazy/krazy.git
20 msg "Connecting to GIT server...."
22 if [[ -d "$_gitname" ]]; then
23 cd "$_gitname" && git pull origin
24 msg "The local files are updated."
26 git clone "$_gitroot" "$_gitname"
29 msg "GIT checkout done or server timeout"
30 msg "Starting build..."
32 rm -rf "$srcdir/$_gitname-build"
33 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34 cd "$srcdir/$_gitname-build"
36 ./install.sh "$pkgdir"/usr # let’s just begin with the helper script.
38 # These should go to vendor_perl but that makes them fail to detect some
40 mv "$pkgdir"/usr/bin/site_perl/* "$pkgdir"/usr/bin/
42 rm -r "$pkgdir"/usr/conf/ # not needed and in a non-standard directory.
44 # Fix a link that refers to $pkgdir/… instead of /….
45 rm "$pkgdir"/usr/lib/Krazy
46 ln -s /usr/share/perl5/site_perl/Krazy "$pkgdir"/usr/lib/Krazy
49 # vim:set ts=2 sw=2 et: