Advertisement
Guest User

Untitled

a guest
Mar 8th, 2011
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. # Maintainer: Army (uli dot armbruster at google)
  2.  
  3. pkgname=i3-tree-git
  4. pkgver=20110308
  5. pkgrel=1
  6. pkgdesc="An improved dynamic tiling window manager"
  7. arch=('i686' 'x86_64')
  8. url="http://i3.zekjur.net/"
  9. license=('BSD')
  10. provides=('i3-wm' 'i3-git')
  11. conflicts=('i3-wm' 'i3-git')
  12. depends=('xcb-util' 'libev' 'yajl' 'libxcursor')
  13. makedepends=('git' 'asciidoc' 'docbook-xsl' 'pkgconfig' 'bison' 'flex')
  14. optdepends=('rxvt-unicode: The terminal emulator used in the default config.'
  15. 'dmenu: As menu.'
  16. 'i3lock: For locking your screen.'
  17. 'i3status: To display systeminformation with a bar.')
  18. options=('docs' '!strip')
  19.  
  20. _gitroot="git://code.stapelberg.de/i3"
  21. _gitname="i3"
  22.  
  23. build() {
  24. cd "$srcdir"
  25. msg "Connecting to GIT server...."
  26.  
  27. if [ -d $_gitname ] ; then
  28. cd $_gitname && git pull origin
  29. msg "The local files are updated."
  30. else
  31. git clone -b tree $_gitroot
  32. fi
  33.  
  34. msg "GIT checkout done or server timeout"
  35. msg "Starting make..."
  36.  
  37. rm -rf "$srcdir/$_gitname-build"
  38. cp -a "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  39. cd "$srcdir/$_gitname-build"
  40.  
  41. make
  42. make -C man
  43. }
  44.  
  45. package() {
  46. cd "$srcdir/$_gitname-build"
  47. make DESTDIR="$pkgdir/" install
  48.  
  49. install -Dm644 man/i3.1 ${pkgdir}/usr/share/man/man1/i3.1
  50. install -Dm644 man/i3-msg.1 ${pkgdir}/usr/share/man/man1/i3-msg.1
  51. install -Dm644 man/i3-input.1 ${pkgdir}/usr/share/man/man1/i3-input.1
  52. install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement