#!/bin/env beesh

SRCURL[0]="ftp://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/${PKGVERSION}/source/xulrunner-${PKGVERSION}.source.tar.bz2"

PATCHURL[0]=""

BEE_CONFIGURE=compat

# EXCLUDE=""



mee_extract() {
    bee_extract ${@}
}

mee_patch() {
    bee_patch ${@}

    sed -e '207s@, NULL@@' \
        -i toolkit/system/gnome/nsAlertsIconListener.cpp
}

mee_configure() {
    bee_configure \
        --with-nspr-libs="$(pkg-config nspr --libs)" \
        --with-nspr-cflags="$(pkg-config nspr --cflags)" \
        --enable-application=xulrunner \
        --disable-necko-wifi \
        --disable-javaxpcom
}

mee_build() {
    bee_build
}

mee_install() {
    bee_install
}