updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / bashets / PKGBUILD
blob51e409f5967a2271b84266e3860b13ea36bfc3df
1 pkgname=bashets
2 pkgver=0.6.2
3 pkgrel=1
4 pkgdesc='User shellscript-powered library for Awesome WM, for widgets and something else'
5 license=('GPL')
6 url='http://gitorious.org/bashets'
8 arch=('any')
9 depends=('awesome-git')
10 #source=('http://gitorious.org/bashets/bashets/blobs/raw/master/bashets.lua')
11 #md5sums=('116fd5a205030b6d4a10e99b80683cab')
13 _mygitroot=git://gitorious.org/bashets/bashets.git
14 _mygitname=bashets
16 build() {
17         cd "$srcdir"
19         msg "Connecting to $_mygitroot..."
20         if [[ -d $_mygitname ]]; then
21                 cd $_mygitname && git pull origin && cd ..
22                 msg2 "updated"
23         else
24                 git clone $_mygitroot
25                 msg2 "checkout done"
26         fi
28         install -Dm644 ${srcdir}/bashets/bashets.lua ${pkgdir}/usr/share/awesome/lib/bashets.lua
29         mkdir -p ${pkgdir}/usr/share/awesome/bashets/
30         install -Dm644 ${srcdir}/bashets/userscripts/* ${pkgdir}/usr/share/awesome/bashets/