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

fluxbox-git PKGBUILD

By: a guest on Jan 13th, 2013  |  syntax: Bash  |  size: 1.50 KB  |  views: 28  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer:  Devin Cofer <ranguvar{AT]archlinux[DOT}us>
  2. # Contributor: CainĂ£ Costa <sryche@archlinux-br.org>
  3. # Contributor: Patrick Bartels <p4ddy.b@gmail.com>
  4. # Contributor: Gimmeapill <gimmeapill[at]gmail[dot]com>
  5.  
  6. pkgname=fluxbox-git
  7. pkgdesc="A lightweight and highly-configurable window manager (Dev version)"
  8. pkgver=20130113
  9. pkgrel=1
  10. arch=('i686' 'x86_64')
  11. license=('MIT')
  12. url="http://www.fluxbox.org/"
  13. makedepends=('git' 'pkgconfig')
  14. depends=('libxft' 'libxpm' 'libxinerama' 'libxrandr' 'imlib2' 'fribidi')
  15. optdepends=('xorg-xmessage: for using the fbsetbg and fluxbox-generate_menu utilities')
  16. provides=('fluxbox')
  17. conflicts=('fluxbox')
  18. source=("fluxbox.desktop")
  19. sha256sums=('6986108c908bc9c025d3ded9f4a0027184a732321deb60585f87d485124fada3')
  20.  
  21. _gitroot="git://git.fluxbox.org/fluxbox.git"
  22. _gitname="fluxbox"
  23.  
  24. build() {
  25.                 cd "$srcdir"
  26.         msg "Performing source checkout..."
  27.         if [ -d "$_gitname" ]; then
  28.                 cd "$_gitname"
  29.                 git pull origin
  30.                 cd ..
  31.         else
  32.                 git clone "$_gitroot"
  33.         fi
  34.         msg "Source checkout finished."
  35.         rm -rf "$_gitname-build"
  36.         git clone "$_gitname" "$_gitname-build"
  37.         cd "$_gitname-build"
  38.     ./autogen.sh
  39.         ./configure --prefix=/usr \
  40.     --enable-xft --enable-xinerama \
  41.     --enable-imlib2 --enable-nls
  42.         make
  43. }
  44.        
  45. package() {    
  46.         cd "$srcdir/$_gitname-build"
  47.         make DESTDIR="$pkgdir" install 
  48.         install -D -m644 "$srcdir/fluxbox.desktop" "${pkgdir}/usr/share/xsessions/fluxbox.desktop"
  49.     install -D -m644 COPYING "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
  50. }
clone this paste RAW Paste Data