Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

PKGBUILD (rxvt-unicode-256xresources)

By: V0rt3k on Mar 13th, 2013  |  syntax: None  |  size: 2.14 KB  |  views: 33  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #  Maintainer: Jonas Palm <jpal@informatik.uni-kiel.de>
  2. # Contributor: Christian Brassat <crshd@mail.com>
  3. # Contributor: Daniel Micay <danielmicay@gmail.com>
  4. # Contributor: Angel Velasquez <angvp@archlinux.org>
  5. # Contributor: tobias <tobias@archlinux.org>
  6. # Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
  7. # Contributer: Magnus Woldrich <magnus@trapd00r.se>
  8.  
  9. pkgname=rxvt-unicode-256xresources
  10. _pkgname=rxvt-unicode
  11. pkgver=9.17
  12. pkgrel=1
  13. pkgdesc="Unicode enabled rxvt-clone terminal emulator (urxvt) with layout/font-width patches and support for 256 Xresource colors"
  14. arch=('i686' 'x86_64' 'armv6h')
  15. url="http://software.schmorp.de/pkg/rxvt-unicode.html"
  16. license=('GPL')
  17. depends=('gcc-libs' 'libxft' 'gdk-pixbuf2')
  18. optdepends=('perl: lots of utilities' 'gtk2-perl: to use the urxvt-tabbed')
  19. source=(http://dist.schmorp.de/rxvt-unicode/$_pkgname-$pkgver.tar.bz2
  20.         $_pkgname.desktop
  21.         font-width-fix.patch
  22.         256color.patch)
  23. provides=(rxvt-unicode)
  24. conflicts=(rxvt-unicode)
  25. md5sums=('1270432bdc7ce17dbb07d41a607081e0'
  26.          '3de6c13126a45bc3bc9f6bba077a1311'
  27.          'df0c3a8b6bb0578d1b91e4081c47881c'
  28.          'fb78c2ecf87626962734320cc2bb7ab1')
  29.  
  30. build() {
  31.   cd "$srcdir/$_pkgname-$pkgver"
  32.   patch -p0 -i ../font-width-fix.patch
  33.   patch -p0 -i ../256color.patch
  34.   ./configure --prefix=/usr \
  35.     --with-terminfo=/usr/share/terminfo \
  36.     --enable-256-color \
  37.     --enable-font-styles \
  38.     --enable-xim \
  39.     --enable-keepscrolling \
  40.     --enable-selectionscrolling \
  41.     --enable-smart-resize \
  42.     --enable-pixbuf \
  43.     --enable-transparency \
  44.     --enable-utmp \
  45.     --enable-wtmp \
  46.     --enable-lastlog \
  47.     --enable-frills
  48.   make
  49. }
  50.  
  51. package() {
  52.   cd "$srcdir/$_pkgname-$pkgver"
  53.   install -d "$pkgdir/usr/share/terminfo"
  54.   export TERMINFO="$pkgdir/usr/share/terminfo"
  55.   make DESTDIR="$pkgdir" install
  56.  # install the tabbing wrapper ( requires gtk2-perl! )
  57.   sed -i 's/\"rxvt\"/"urxvt"/' doc/rxvt-tabbed
  58.   install -Dm 755 doc/rxvt-tabbed "$pkgdir/usr/bin/urxvt-tabbed"
  59.  # install freedesktop menu
  60.   install -Dm644 ../$_pkgname.desktop \
  61.     "$pkgdir/usr/share/applications/$_pkgname.desktop"
  62. }