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 Jan 4th, 2012  |  syntax: None  |  size: 0.99 KB  |  views: 45  |  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. pkgname=gxneur-hg
  2. pkgver=1026
  3. pkgrel=1
  4. pkgdesc="GTK frontend for XNeur (Mercurial)"
  5. arch=('i686' 'x86_64')
  6. url="http://www.xneur.ru"
  7. license=('GPL')
  8. depends=('libglade' 'hicolor-icon-theme' 'gconf' 'xneur')
  9. makedepends=('mercurial')
  10. provides=(xneur)
  11. conflicts=(xneur)
  12. install=${pkgname}.install
  13.  
  14. _hgroot=http://anonymous:anonymous@hg.itways.ru/xneur
  15. _hgrepo=gxneur
  16.  
  17. build() {
  18.  
  19.   cd "${srcdir}"
  20.   msg "Connecting to Mercurial server...."
  21.  
  22.   if [[ -d "${_hgrepo}" ]]; then
  23.     cd "${_hgrepo}"
  24.     hg pull -u
  25.     msg "The local files are updated."
  26.   else
  27.     hg clone -v ${_hgroot} "${_hgrepo}"
  28.   fi
  29.  
  30.   msg "Mercurial checkout done or server timeout"
  31.   msg "Starting build..."
  32.  
  33.   rm -rf "${srcdir}/${_hgrepo}-build"
  34.   cp -r "${srcdir}/${_hgrepo}" "${srcdir}/${_hgrepo}-build"
  35.   cd "${srcdir}/${_hgrepo}-build"
  36.  
  37.   #
  38.   # BUILD HERE
  39.   #
  40.   ./autogen.sh
  41.   ./configure --prefix=/usr
  42.   make
  43. }
  44.  
  45. package() {
  46.   cd "${srcdir}/${_hgrepo}-build"
  47.   make DESTDIR="$pkgdir/" install
  48. }