Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 1st, 2013  |  syntax: Bash  |  size: 0.83 KB  |  views: 147  |  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. pkgname=package-query-git
  3. pkgver=1.1.1.g1cc5084
  4. pkgrel=1
  5. pkgdesc="Query ALPM and AUR"
  6. arch=('i686' 'x86_64')
  7. url="http://gitweb.archlinux.fr/package-query.git/"
  8. license=('GPL')
  9. depends=('pacman>=4.1' curl 'yajl>=2.0')
  10. makedepends=('git')
  11. conflicts=('package-query')
  12. provides=('package-query=1.0')
  13. source=('git+http://projects.archlinux.fr/package-query.git')
  14. md5sums=('SKIP')
  15. _gitname=package-query
  16.  
  17. pkgver () {
  18.   cd $_gitname
  19.   # Git tag
  20.   echo $(git describe --always | sed 's/-/./g')
  21.   # Date
  22.   #date +"%Y%m%d"
  23. }
  24.  
  25. build() {
  26.   cd $_gitname
  27.   ./autogen.sh
  28.   ./configure --localstatedir=/var --prefix=/usr \
  29.     --sysconfdir=/etc --with-aur-url=https://aur.archlinux.org
  30.   make
  31. }
  32.  
  33. package () {
  34.   cd $_gitname
  35.   make DESTDIR=$pkgdir install
  36. }
  37.  
  38. # vim:set ts=4 sw=4 et:
clone this paste RAW Paste Data