description="An enhanced unicode capable version of the rxvt terminal emulator."
url="http://software.schmorp.de/pkg/rxvt-unicode.html"

packager="Spiky <spiky@nutyx.org>"
contributors="Alienus,Spiky,Tnut"

makedepends=(gdk-pixbuf perl xorg-libxt xorg-libxft libnsl startup-notification libptytty)
run=(startup-notification)

name=rxvt-unicode
version=9.30

source=(
http://dist.schmorp.de/rxvt-unicode/Attic/$name-$version.tar.bz2
$name.desktop
$name.svg)

build(){
    cd $name-$version
    ./configure --prefix=/usr \
                --sysconfdir=/etc \
                --localstatedir=/var \
                --enable-everything \
                --enable-unicode3 \
                --enable-combining \
                --enable-xft \
                --enable-font-styles \
                --enable-transparency \
                --enable-fading \
                --enable-frills \
                --enable-pixbuf \
                --enable-rxvt-scroll \
                --enable-next-scroll \
                --enable-xterm-scroll \
                --enable-perl \
                --enable-xim \
                --enable-iso14755 \
                --enable-keepscrolling \
                --enable-selectionscrolling \
                --enable-mousewheel \
                --enable-slipwheeling \
                --enable-smart-resize \
                --enable-text-blink \
                --enable-pointer-blank \
                --enable-utmp \
                --enable-wtmp \
                --enable-lastlog \
                --enable-256-color

    mkdir -p $PKG/usr/share/terminfo
    TERMINFO=$PKG/usr/share/terminfo make install DESTDIR=$PKG

    # desktop intergration with icon from openclipart
    install -Dm 644 $SRC/$name.desktop \
        $PKG/usr/share/applications/$name.desktop
    install -Dm 644 $SRC/$name.svg \
        $PKG/usr/share/icons/hicolor/scalable/apps/$name.svg
}
