updated on Wed Jan 18 20:10:41 UTC 2012
[aur-mirror.git] / awesome-scratchpad-git / PKGBUILD
blobb7636283cb1bc25e10819363eec45508db8143bd
1 # Maintainer: Peter Lewis <plewis@aur.archlinux.org>
2 pkgname=awesome-scratchpad-git
3 pkgver=20110711
4 pkgrel=1
5 pkgdesc="Scratchpad functionality for Awesome WM."
6 arch=(any)
7 url="http://git.sysphere.org/awesome-configs/tree/scratch"
8 license=('GPL')
9 groups=()
10 depends=('awesome')
11 makedepends=('git')
12 provides=()
13 conflicts=()
14 replaces=()
15 backup=()
16 options=()
17 install=
18 source=()
19 noextract=()
20 md5sums=() #generate with 'makepkg -g'
22 _gitroot="http://git.sysphere.org/awesome-configs"
23 _gitname="awesome-configs"
25 build() {
26   cd "$srcdir"
27   msg "Connecting to GIT server...."
29   if [ -d $_gitname ] ; then
30     cd $_gitname && git pull origin
31     msg "The local files are updated."
32   else
33     git clone $_gitroot $_gitname
34   fi
36   msg "GIT checkout done or server timeout"
39 package() {
40   cd "$srcdir/$_gitname/scratch"
42         install -Dm644 "drop.lua" "$pkgdir/usr/share/awesome/lib/scratch/drop.lua"
43         install -Dm644 "init.lua" "$pkgdir/usr/share/awesome/lib/scratch/init.lua"
44         install -Dm644 "pad.lua" "$pkgdir/usr/share/awesome/lib/scratch/pad.lua"
46