APP=rxvt-unicode
VERSION=9.22
BUILD=1sml
HOMEPAGE="http://software.schmorp.de/pkg/rxvt-unicode.html"
DOWNLOAD="http://dist.schmorp.de/rxvt-unicode/Attic/rxvt-unicode-9.22.tar.bz2"
DESC="Enhanced version of rxvt terminal emulator with full support for unicode and XFT"
REQUIRES="gcc-libs netbsd-curses glib perl libxft startup-notification"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --enable-everything \
    --enable-256-color \
    --enable-unicode3 \
    --enable-xft \
    --enable-font-styles \
    --enable-transparency \
    --enable-fading \
    --enable-frills \
    --enable-pixbuf \
    --enable-rxvt-scroll \
    --enable-next-scroll \
    --enable-xim \
    --enable-iso14755 \
    --enable-keepscrolling \
    --enable-smart-resize \
    --enable-text-blink \
    --enable-pointer-blank \
    --disable-wtmp \
    --disable-lastlog 

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
1316746ba1771dd6e6c306832227227ab6685aad1a3e246d4059fd60ecf36089aeee12a8d28a376e70ccc148b7e6457bcded6dad4531bbed6af3ab8c6805ec03  rxvt-unicode-9.22.tar.lz
"
