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

gnome-shell-extension-weather-git-20131017-1: PKGBUILD

By: jtts on Oct 16th, 2013  |  syntax: None  |  size: 1.06 KB  |  views: 65  |  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:
  2. # Contributor: jtts
  3. # Contributor: Christian METZLER <neroth@xeked.com>
  4.  
  5. pkgname=gnome-shell-extension-weather-git
  6. pkgver=20131017
  7. pkgrel=1
  8. pkgdesc="A simple GNOME Shell extension for displaying weather informations from several cities"
  9. arch=('any')
  10. url="https://github.com/jenslody/gnome-shell-extension-weather"
  11. license=('GPL3')
  12. depends=('glib2' 'gettext' 'pkg-config')
  13. makedepends=('git' 'gnome-common-git' 'autoconf' 'automake' 'intltool')
  14. replaces=('gnome-shell-extension-weather-neroth-git')
  15. install='gschemas.install'
  16.  
  17. _gitroot="https://github.com/jenslody/gnome-shell-extension-weather"
  18. _gitname="gnome-shell-extension-weather"
  19. build() {
  20.   cd "$srcdir"
  21.   msg "Connecting to GIT server...."
  22.  
  23.   if [ -d $_gitname ] ; then
  24.     cd $_gitname && git pull origin
  25.     msg "The local files are updated."
  26.   else
  27.     git clone $_gitroot $_gitname
  28.   fi
  29.  
  30.   msg "GIT checkout done or server timeout"
  31.  
  32.   cd "$srcdir/$_gitname"
  33.   ./autogen.sh --prefix=/usr
  34.   make
  35. }
  36.  
  37. package() {
  38.   cd "$srcdir/$_gitname"
  39.   make DESTDIR=${pkgdir} install
  40. }