Advertisement
Perberos

mate-calc aur

Mar 13th, 2012
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.07 KB | None | 0 0
  1. # Maintainer: Perberos <perberos@gmail.com>
  2. pkgname=mate-calc
  3. pkgver=20120308
  4. pkgrel=1
  5. pkgdesc="Calculator for the Mate desktop environment"
  6. arch=('i686' 'x86_64')
  7. license=('LGPL' 'GPL')
  8. depends=('gtk2' 'libxml2' 'libpng' 'freetype2' 'pixman' 'glib' 'pango' 'gdk-pixbuf2' 'cairo' 'atk')
  9. makedepends=('pkgconfig' 'mate-doc-utils')
  10. groups=('mate-extra')
  11. url="http://matsusoft.com.ar/projects/mate/"
  12. source=()
  13. sha256sums=()
  14.  
  15. _gitroot=git://github.com/mate-desktop/mate-calc.git
  16. _gitname=mate-calc
  17.  
  18. build() {
  19.     cd "$srcdir"
  20.     msg "Connecting to GIT server...."
  21.  
  22.     if [[ -d "$_gitname" ]]; then
  23.         cd "$_gitname" && git pull origin
  24.         msg "The local files are updated."
  25.     else
  26.         git clone "$_gitroot" "$_gitname"
  27.     fi
  28.  
  29.     msg "GIT checkout done or server timeout"
  30.     msg "Starting build..."
  31.  
  32.     rm -rf "$srcdir/$_gitname-build"
  33.     git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  34.     cd "$srcdir/$_gitname-build"
  35.    
  36.     ./autogen.sh --prefix=/usr || return 1
  37.     make || return 1
  38. }
  39.  
  40. package() {
  41.     cd "$srcdir/$_gitname-build"
  42.  
  43.     make DESTDIR="${pkgdir}" install || return 1
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement