# Description: Terminal based IRC client for UNIX systems
# URL: https://irssi.org/
# Maintainer: Matt Housh, jaeger at crux dot ninja
# Depends on: glib

name=irssi
version=1.4.5
release=1
source=(https://github.com/$name/$name/releases/download/$version/$name-$version.tar.xz)

build () {
    cd $name-$version
    ./configure --prefix=/usr \
        --with-proxy \
        --with-perl-lib=site
    make
    make DESTDIR=$PKG install
    find $PKG \( -name .packlist -or \
        -name perllocal.pod -or \
        -name '*.bs' -or \
        -name autosplit.ix \) \
        -delete
    rm -rf $PKG/usr/{include,share/doc}
}
