updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / obstartup-hg / PKGBUILD
blob8ae302f4389ea3f59816020611233b1140a54766
1 # Contributor: David Gidwani <miniature@archlinux.us>
3 name=obstartup
4 pkgname="${name}-hg"
5 pkgver=6
6 pkgrel=1
7 source=()
8 md5sums=()
10 url="http://bitbucket.org/darvid"
11 pkgdesc="A user-friendly Openbox autostart.sh configurator."
12 license=('BSD')
14 arch=('x86_64' 'i686')
16 _hgroot=$url
17 _hgrepo="$name"
19 depends=('python' 'pygtk')
20 makedepends=('mercurial' 'coreutils')
22 build () {
23   cd $srcdir
24   msg "Connecting to Mercurial server..."
25   if [[ -d "${_hgrepo}/.hg" ]]; then
26     ( cd $_hgrepo && hg pull -u )
27   else
28     hg clone "${_hgroot}/${_hgrepo}"
29   fi
30   cd "${_hgrepo}"
32   install -D "$name.glade" "$pkgdir/usr/share/$name/$name.glade"
33   install -D -m755 "$name.py" "$pkgdir/usr/share/$name/$name.py"
36 package () {
37   mkdir -p "$pkgdir/usr/bin"
38   ln -s "$pkgdir/usr/share/$name/$name.py" "$pkgdir/usr/bin/$name"