updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / locky-git / PKGBUILD
blob1b67df1a4ab458d9ea91e3439e1316841c7b8cf1
1 # Contributor: Sapphira Armageddos <shadowkyogre@aim.com>
2 pkgname=locky-git
3 pkgver=20110316
4 pkgrel=1
5 pkgdesc="Locks all X sessions upon suspend or hibernate with xscreensaver or a custom command."
6 arch=('any')
7 url="https://github.com/ShadowKyogre/Locky"
8 license=('GPL')
9 depends=('xorg-xdpyinfo' 'pm-utils')
10 makedepends=('git')
11 backup=(etc/lockyrc)
13 _giturl=git://github.com/ShadowKyogre/Locky.git
14 _gitname="Locky"
16 # trick re-determining the build revision and, or entertain the hidden
17 # makepkg option --forcever, huh
18 if [ -z "${FORCE_VER}" ]; then
19     msg "Determining latest build revision..."
20     FORCE_VER=$(date +%Y%m%d)
25 build() {
26         cd "$srcdir"
27         if [ -d $_gitname ];then
28                 cd $_gitname && git pull origin
29         else
30                 git clone $_giturl $_gitname
31         fi
34 package() {
35         cd ${srcdir}/$_gitname
37         install -Dm755 67locky ${pkgdir}/etc/pm/sleep.d/67locky
38         install -Dm644 lockyrc ${pkgdir}/etc/lockyrc
42 # vim:set ts=2 sw=2 et: