#!/usr/bin/env beesh

# BEE_VERSION man-db-2.9.3-0

# more info: https://github.com/westes/flex
# SRCURL[0]="http://download.savannah.gnu.org/releases/man-db/man-db-${PKGVERSION}.tar.xz"
SRCURL[0]="https://beehive.molgen.mpg.de/4c8721faa54a4c950c640e5e5c713fb0/man-db-2.9.3.tar.xz"

# build_in_sourcedir

# sourcesubdir_append src

#mee_extract() {
#    bee_extract "${@}"
#}

mee_patch() {
    bee_patch ${@}
    # sed -i 's/man\ root/root\ root/' init/systemd/man-db.conf

    sed -i '/find/s@/usr@@' init/systemd/man-db.service.in
}

mee_configure() {
    bee_configure \
        --disable-nls \
        --disable-setuid                     \
        --enable-cache-owner=bin             \
        --with-systemdtmpfilesdir=no \
        --with-systemdsystemunitdir=no \
#            --with-browser=/usr/bin/lynx         \
#            --with-vgrind=/usr/bin/vgrind        \
#            --with-grap=/usr/bin/grap

}


#mee_build() {
#    bee_build
#}

#mee_install() {
#    bee_install
#}