#!/usr/bin/env beesh

# BEE_VERSION smartmontools-6.6-1

SRCURL[0]="https://downloads.sourceforge.net/smartmontools/smartmontools-${PKGVERSION}.tar.gz"

# PATCHURL+=()

# EXCLUDE+=()

# build_in_sourcedir

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

#mee_patch() {
#    bee_patch "${@}"
#}

mee_configure() {
    bee_configure \
        --with-systemdsystemunitdir=no \
        --with-initscriptdir=no \
        --with-smartdplugindir=no
}

#mee_build() {
#    bee_build
#}

mee_install() {
    bee_install
    rm -vrf ${D}/usr/share/doc
    rm -vrf ${D}/etc
    rm -vrf ${D}/usr/share/man/man5
    rm -vf ${D}/usr/sbin/{smartd,update-smart-drivedb}
    rm -vf ${D}/usr/share/man/man8/{smartd,update-smart-drivedb}.8
}