Guest User

dzen2-git pkgbuild

a guest
Feb 26th, 2014
108
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=dzen2-git
  2. pkgrel=1
  3. pkgver=r14.488ab66
  4. pkgdesc="X notification utility with Xinerama and XMP support, git version."
  5. arch=('i686' 'x86_64')
  6. url=('https://github.com/robm/dzen')
  7. license=('MIT/X')
  8. depends=(libxft)
  9. source=()
  10. md5sums=()
  11. conflicts=(dzen2-svn dzen2)
  12.  
  13. _gitroot=https://github.com/robm/dzen.git
  14. _gitname=dzen
  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.     msg "GIT checkout done or server timeout"
  27.     msg "Starting make..."
  28.  
  29.     cd "$srcdir/$_gitname"
  30.     make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
  31.    
  32.     cd gadgets
  33.     make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
  34. }
  35.  
  36. pkgver() {
  37.   cd "$srcdir/$_gitname"
  38.   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  39. }
  40.  
  41.  
  42. package() {
  43.     cd "$srcdir/$_gitname"
  44.     make PREFIX=/usr DESTDIR=$pkgdir install
  45.  
  46.     install -D -m644 README "${pkgdir}/usr/share/doc/${pkgname}/README"
  47.     install -D -m644 README.dzen "${pkgdir}/usr/share/doc/${pkgname}/README.dzen"
  48.     install -D -m644 CREDITS "${pkgdir}/usr/share/doc/${pkgname}/CREDITS"
  49.     install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  50.    
  51.     cd gadgets
  52.     make PREFIX=/usr DESTDIR=$pkgdir install
  53. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×