updated on Sat Jan 21 16:18:39 UTC 2012
[aur-mirror.git] / lightscreen-git / PKGBUILD
blob8cfd1b157e5ed60e0373dfc176f5e4c8b8b61ff1
1 pkgname=lightscreen-git
2 pkgver=20110716
3 pkgrel=1
4 pkgdesc="Simple screenshot tool written in Qt"
5 url="http://lightscreen.sourceforge.net/"
6 license="GPL"
7 arch=('any')
8 makedepends=('git' 'gcc-libs' 'qt')
9 depends=('qt')
10 optdepends=('optipng: optimize png screenshots.')
11 _gitroot='https://github.com/ckaiser/Lightscreen.git'
12 _gitname='Lightscreen'
14 build() {
15     cd "$srcdir"
16   
17     msg "Connecting to github GIT server...."
19     if [ -d "$srcdir/$_gitname" ] ; then
20         cd $_gitname && git pull
21     else
22         git clone "$_gitroot"
23         cd $_gitname
24     fi
26     qmake
27     make
28       
29     mkdir -p "$pkgdir/usr/bin/"
30     install -m 755 lightscreen "$pkgdir/usr/bin/lightscreen"