Advertisement
Guest User

Untitled

a guest
Feb 28th, 2011
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. pkgname=pilaunch-git
  2. pkgver=20110228
  3. pkgrel=1
  4. pkgdesc="Menua/launcher with additional functionality (calc, mpd client, launch urls and web searches)"
  5. arch=(any)
  6. url=https://github.com/vincekd/Pilaunch
  7. license=(GPL)
  8. depends=(pygtk)
  9. optdepends=("python-mpd: for the built in mpd client")
  10. makedepends=(git)
  11. install=$pkgname.install
  12.  
  13. _gitroot=https://github.com/vincekd/Pilaunch.git
  14. _gitname=pilaunch
  15.  
  16. build() {
  17. cd "$srcdir"
  18. msg "Connecting to GIT server...."
  19.  
  20. if [ -d ${_gitname} ] ; then
  21. cd ${_gitname} && git pull origin
  22. msg "The local files are updated."
  23. else
  24. git clone ${_gitroot} ${_gitname}
  25. fi
  26.  
  27. msg "GIT checkout done or server timeout"
  28. }
  29. package() {
  30. install -Dm755 "${srcdir}/${_gitname}/${_gitname}/${_gitname}.py" "${pkgdir}/usr/bin/${_gitname}"
  31. install -Dm644 "${srcdir}/${_gitname}/${_gitname}/piconfig.py" "${pkgdir}/usr/share/${_gitname}/piconfig.py"
  32. install -Dm644 "${srcdir}/${_gitname}/${_gitname}/pilaunchextra.py" "${pkgdir}/usr/share/${_gitname}/pilaunchextra.py"
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement