updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / camshot-svn / PKGBUILD
blob1e4a795f2671e3e4febce29c217f5044729a0583
1 # Maintainer: Tasos Latsas <tlatsas2000 _at_ gmail _dot_ com>
3 pkgname=camshot-svn
4 pkgver=12
5 pkgrel=1
6 pkgdesc="Linux console webcam screenshot utility"
7 arch=('i686' 'x86_64')
8 url="http://code.google.com/p/camshot/"
9 license=('GPL')
10 depends=('glibc')
11 makedepends=('subversion')
13 _svntrunk="http://camshot.googlecode.com/svn/trunk/"
14 _svnmod="trunk"
16 build() {
17   cd "$srcdir"
18   msg "Connecting to SVN server...."
20   if [[ -d "$_svnmod/.svn" ]]; then
21     (cd "$_svnmod" && svn up -r "$pkgver")
22   else
23     svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
24   fi
26   msg "SVN checkout done or server timeout"
27   msg "Starting build..."
29   rm -rf "$srcdir/$_svnmod-build"
30   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
31   cd "$srcdir/$_svnmod-build"
33   make
36 package() {
37   cd "$srcdir/$_svnmod-build"
38   install -Dm775 camshot "${pkgdir}/usr/bin/camshot"
41 # vim:set ts=2 sw=2 et: