Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

st-hg PKGBUILD

By: a guest on Oct 7th, 2010  |  syntax: Bash  |  size: 1.42 KB  |  hits: 225  |  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: Scytrin dai Kinthra <scytrin@gmail.com>
  2. # Contributor: Devin J. Pohly <djpohly+arch@gmail.com>
  3. pkgname=st-hg
  4. pkgver=149
  5. pkgrel=1
  6. pkgdesc="A simple virtual terminal emulator for X"
  7. arch=('i686' 'x86_64')
  8. url="http://st.suckless.org/"
  9. license=('MIT')
  10. depends=('libx11')
  11. makedepends=('ncurses')
  12. # Uncomment to use your own config.h
  13. #source=(config.h)
  14. #md5sums=(...generate your own...)
  15.  
  16. _hgroot="http://hg.suckless.org/"
  17. _hgrepo="st"
  18.  
  19. build() {
  20.   cd "$srcdir"
  21.   msg "Connecting to Mercurial server...."
  22.  
  23.   if [ -d $_hgrepo ] ; then
  24.     cd $_hgrepo
  25.     hg pull -u || return 1
  26.     msg "The local files are updated."
  27.   else
  28.     hg clone $_hgroot $_hgrepo || return 1
  29.   fi
  30.  
  31.   msg "Mercurial checkout done or server timeout"
  32.   msg "Starting make..."
  33.  
  34.   rm -rf "$srcdir/$_hgrepo-build"
  35.   cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
  36.   cd "$srcdir/$_hgrepo-build"
  37.  
  38.   # Uncomment to use your own config.h
  39.   #cp "$srcdir/config.h" . || return 1
  40.  
  41.   make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 || return 1
  42. }
  43.  
  44. package() {
  45.   cd "$srcdir/$_hgrepo-build"
  46.  
  47.   install -d "$pkgdir/usr/share/terminfo" || return 1
  48.   make PREFIX=/usr DESTDIR="$pkgdir" TERMINFO="$pkgdir/usr/share/terminfo" install || return 1
  49.   install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" || return 1
  50.   install -m644 -D README "$pkgdir/usr/share/doc/$pkgname/README" || return 1
  51. }
  52.  
  53. # vim:set ts=2 sw=2 et: