# Maintainer: PktSurf <smlinux@pktsurf.in>
app=rxvt-unicode
version=9.31
build=1sml
homepage="https://software.schmorp.de/pkg/rxvt-unicode.html"
download="https://dist.schmorp.de/rxvt-unicode/Attic/rxvt-unicode-$version.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"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  ./configure \
    --prefix= \
    --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

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
6451dc2032299ede6f1d0cf695ad713af58bfe1705af4cafc8615da44187ce13d88f0b7dc95710af85a515f3a9068b5c67237ff2e1c874f7b1d4a9e8db31797b  rxvt-unicode-9.31.tar.lz
"
