updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / pidgin-capsnot-svn / PKGBUILD
blobd1bfbf1e0b100633ac4fd2c5d0b4d685a68be970
1 # Maintainer: mickael9 <mickael9 at gmail dot com>
2 pkgname=pidgin-capsnot-svn
3 pkgver=4
4 pkgrel=1
5 pkgdesc="Keyboard LED Notification for Pidgin"
6 arch=(i686 x86_64)
7 url="http://code.google.com/p/pidgin-capsnot/"
8 license=('GPL3')
9 depends=('pidgin')
10 makedepends=('subversion')
12 _svntrunk='http://pidgin-capsnot.googlecode.com/svn/trunk/'
13 _svnmod=pidgin-capsnot
15 build() {
16   cd "$srcdir"
17   msg "Connecting to SVN server...."
19   if [[ -d "$_svnmod/.svn" ]]; then
20     (cd "$_svnmod" && svn up -r "$pkgver")
21   else
22     svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
23   fi
25   msg "SVN checkout done or server timeout"
26   msg "Starting build..."
28   rm -rf "$srcdir/$_svnmod-build"
29   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
30   cd "$srcdir/$_svnmod-build"
32   make capsnot.so
35 package() {
36   cd "$srcdir/$_svnmod-build"
37   install -D capsnot.so "$pkgdir/usr/lib/pidgin/capsnot.so"
40 # vim:set ts=2 sw=2 et: