1 # Maintainer: Elijah Perrault <elijah@starcoder.info>
5 pkgdesc="An easy-to-use, modular, advanced, and flexible IRC bot"
7 url="http://xelhua.org/auto.php"
10 depends=('perl>=5.10' 'perl-dbi' 'perl-dbd-sqlite' 'perl-io-socket-ssl' 'perl-class-unload')
12 install=$pkgname.install
14 _gitroot="git://github.com/Xelhua/Auto.git"
19 msg "Connecting to Git server....."
21 if [ -d $_gitname ]; then
22 cd $_gitname && git pull origin
23 msg "The local files are updated."
28 msg "Checkout done or server timeout"
29 msg "Starting make....."
31 rm -rf "$srcdir/$_gitname-build"
32 cp -r "$srcdir/$_gitname" "$srcdir/${_gitname}-build"
33 cd "$srcdir/$_gitname-build"
35 mkdir -p $pkgdir/usr/lib/autobot/3.0.0
36 mkdir -p $pkgdir/usr/bin
38 perl "install" --syswide --prefix=$pkgdir/usr --enable-sasl || return 1
40 msg "Build done, creating documentation....."
42 mkdir -p $pkgdir/usr/share/licenses/autobot-git/
43 install -m644 doc/LICENSE $pkgdir/usr/share/licenses/autobot-git/ || return 1
44 mkdir -p $pkgdir/usr/share/doc/autobot-git/
45 install -m644 README $pkgdir/usr/share/doc/autobot-git/ || return 1
46 install -m644 NEWS $pkgdir/usr/share/doc/autobot-git/ || return 1
47 install -m644 doc/* $pkgdir/usr/share/doc/autobot-git/ || return 1
48 rm $pkgdir/usr/share/doc/autobot-git/LICENSE
50 rm -rf $srcdir/${_gitname}-build
53 # vim: set et ts=2 sw=2: