updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / sflock-git / PKGBUILD
blob29b2fcc0716b7df78f92b974027ea5cd1f8fede2
1 pkgname=sflock-git
2 pkgver=20101226
3 pkgrel=2
4 pkgdesc="A simple screen locker for X"
5 arch=('i686' 'x86_64')
6 url="https://github.com/benruijl/sflock"
7 license=('MIT')
8 depends=('libxext')
9 makedepends=('git')
11 _gitroot="git://github.com/benruijl/sflock.git"
12 _gitname="sflock"
14 build() {
15   cd "$srcdir"
17   msg "Connecting to GIT server...."
19   if [ -d $_gitname ]; then
20      cd $_gitname && git pull origin
21      msg "The local files are updated."
22   else
23      git clone $_gitroot $_gitname
24      cd $_gitname
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting install..."
30   make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
32   make PREFIX=/usr DESTDIR="$pkgdir" install
33   install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"