Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 1st, 2013  |  syntax: Bash  |  size: 1.04 KB  |  hits: 234  |  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. # Maintainer:  tuxce <tuxce;net@gmail.com>
  2. # Contributor: Julien MISCHKOWITZ <wain@archlinux.fr>
  3.  
  4. pkgname=yaourt-git
  5. pkgver=1.2.1.6.gb0649c9
  6. pkgrel=1
  7. pkgdesc="A pacman wrapper with extended features and AUR support"
  8. arch=('any')
  9. url="http://www.archlinux.fr/yaourt-en/"
  10. license=('GPL')
  11. depends=('package-query-git' 'pacman>=4.1')
  12. makedepends=('git')
  13. optdepends=('aurvote: vote for your favorite AUR packages'
  14.             'customizepkg: automatically modify PKGBUILD during install/upgrade'
  15.             'rsync: retrieve PKGBUILD from official repositories')
  16. provides=('yaourt')
  17. conflicts=('yaourt')
  18. backup=('etc/yaourtrc')
  19. source=('git+http://projects.archlinux.fr/yaourt.git')
  20. md5sums=('SKIP')
  21. _gitname=yaourt
  22.  
  23. pkgver () {
  24.   cd $_gitname/src
  25.   # Git tag
  26.   echo $(git describe --always | sed 's/-/./g')
  27.   # Date
  28.   #date +"%Y%m%d"
  29. }
  30.  
  31. build() {
  32.   cd $_gitname/src
  33.   make PREFIX=/usr sysconfdir=/etc localstatedir=/var
  34. }
  35.  
  36. package() {
  37.   cd $_gitname/src
  38.   make PREFIX=/usr sysconfdir=/etc localstatedir=/var DESTDIR="$pkgdir" install
  39. }