4 pkgdesc="Ratpoison from git"
6 url="http://www.nongnu.org/ratpoison/"
8 depends=('libxinerama' 'readline' 'bash' 'perl' 'libxtst' 'libxft')
10 provides=('ratpoison')
11 replaces=('ratpoison')
12 conflicts=('ratpoison')
16 _gitroot="git://git.savannah.nongnu.org/ratpoison.git"
24 msg "Git checkout: Updating existing tree"
25 (cd "$_gitname"; git pull origin)
26 msg "Git checkout: Tree has been updated"
28 msg "Git checkout: Retrieving sources"
31 msg "Checkout completed"
33 rm -rf "${_gitname}-build"
34 git clone "$_gitname" "$_gitname-build"
38 ./configure --prefix=/usr
46 cd "$srcdir/$_gitname-build"
48 install -d "$pkgdir/usr/share/ratpoison/bindings"
50 make DESTDIR="$pkgdir" install
51 install -m 644 contrib/{Ratpoison.pm,ratpoison-cmd.el,ratpoison.rb,ratpoison.lisp,ratpoison.py} \
52 "$pkgdir/usr/share/ratpoison/bindings"
54 chmod a+x "$pkgdir/usr/share/ratpoison/"{allwindows.sh,clickframe.pl,rpshowall.sh,rpws,split.sh}
55 rm -rf "$pkgdir/usr/share/info/dir"