Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 11th, 2011  |  syntax: None  |  size: 0.98 KB  |  views: 46  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Will Chappell <wtchappell@gmail.com>
  2.  
  3. pkgname=lua-oopango-git
  4. pkgver=20111112
  5. pkgrel=1
  6. pkgdesc="Lua bindings to pango."
  7. arch=('i686' 'x86_64')
  8. url="git://git.naquadah.org/oopango.git"
  9. license=('GPL')
  10. depends=('pango' 'lua' 'lua-oocairo')
  11. makedepends=('git' 'perl')
  12. provides=('lua-oopango')
  13. conflicts=('lua-oopango')
  14.  
  15. _gitroot="git://git.naquadah.org/oopango.git"
  16. _gitname="oopango"
  17.  
  18. build() {
  19.   cd ${srcdir}
  20.  
  21.   msg "Connecting to GIT server..."
  22.   if [[ -d ${_gitname} ]]; then
  23.     cd ${_gitname} && git pull origin
  24.   else
  25.     git clone ${_gitroot} ${_gitname}
  26.   fi
  27.   msg "GIT checkout done or server timeout"
  28.   msg "Starting make..."
  29.  
  30.   rm -rf ${_gitname}-build
  31.   git clone ${_gitname} ${_gitname}-build
  32.  
  33.   cd ${srcdir}/${_gitname}-build
  34.   ./autogen.sh
  35.   ./configure --prefix=/usr
  36.   sed -i 's/lua5.1/lua/' configure
  37.   make
  38.   make \
  39.     POD2MAN=/usr/lib/perl5/core_perl/bin/pod2man \
  40.     DESTDIR="${pkgdir}" install
  41. }
  42.  
  43. # vim:set ts=2 sw=2 et:
  44.  
  45.