updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / irsnot-git / PKGBUILD
blob382cf407138c3438c10ce875755937e7a62c5bc8
1 pkgname=irsnot-git
2 pkgver=20110327
3 pkgrel=1
4 pkgdesc="An irssi dbus notification script."
5 arch=('i686' 'x86_64')
6 url="https://github.com/tuxjay/irsnot"
7 license=('MPL' 'GPL' 'LGPL')
8 depends=('perl-desktop-notify' 'irssi')
9 makedepends=('git')
10 provides=(irsnot)
12 _gitroot="git://github.com/tuxjay/irsnot.git"
13 _gitname="irsnot"
15 build() {
16   cd $srcdir
18  ## Git checkout
19   if [ -d $srcdir/${_gitname} ] ; then
20     msg "Git checkout:  Updating existing tree"
21     cd ${_gitname} && git pull origin  || return 1
22     msg "Git checkout:  Tree has been updated"
23   else
24     msg "Git checkout:  Retrieving sources"
25     git clone ${_gitroot}  || return 1
26   fi
27   msg "Checkout completed"
30 package() { 
31   cd $srcdir/${_gitname}
32   mkdir -p "$pkgdir/usr/share/irssi/scripts/"
33   mkdir -p "$pkgdir/usr/share/doc/irssi/"
34   cp irsnot.pl "$pkgdir/usr/share/irssi/scripts/"
35   cp irsnotrc.sample "$pkgdir/usr/share/doc/irssi/"
36