updated on Wed Jan 25 20:08:56 UTC 2012
[aur-mirror.git] / vlock-cmatrixreloaded / PKGBUILD
blobf06396940646bfdf21a8c51a37d9d582d00b5f17
1 # $Id: PKGBUILD 22255 2010-07-20 05:18:40Z spupykin $
2 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 # Contributor: Corrado Primier <bardo@aur.archlinux.org>
4 # Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
6 pkgname=vlock-cmatrixreloaded
7 pkgver=0.01
8 pkgrel=9
9 pkgdesc="A small console locking program, hack'n'patched for matrix goodness."
10 url="http://cthulhu.c3d2.de/~toidinamai/vlock/vlock.html"
11 arch=('i686' 'x86_64')
12 license=('GPL2')
13 depends=('pam' 'ncurses')
14 install=vlock-cmatrixreloaded.install
15 source=(http://login.icu.uzh.ch/~archer/${pkgname}-${pkgver}.tar.gz)
16 md5sums=('4d7557081d8fb914c26a2ee3cb345278')
19 build() {
20   if (getent group vlockcmr); then
21     echo "Group vlockcmr already exists. Continuing..."
22   else 
23         echo "Need to add vlockcmr group..."
24       if $(LD_PRELOAD="" pacman -Qi sudo >/dev/null 2>&1); then
25         LD_PRELOAD="" sudo groupadd vlockcmr
26         echo "Added vlockcmr group"
27       elif (( $(LD_PRELOAD="" id -u) != 0 )); then
28         echo "Need to have sudo or be logged in as root!"
29         return 1
30       else
31         groupadd vlockcmr
32       fi
33   fi
34   cd ${srcdir}/${pkgname}-${pkgver}
35   ./configure --prefix=/usr
36   make || return 1
37   make DESTDIR=${pkgdir} install