PKGNAME=nut
PKGSEC=admin
PKGDEP="gcc-runtime libgd libtool libusb-compat neon net-snmp openssl pyqt6"
PKGDEP__RETRO="gcc-runtime libgd libtool libusb-compat neon net-snmp openssl"
PKGDEP__ARMV4="${PKGDEP__RETRO}"
PKGDEP__ARMV6HF="${PKGDEP__RETRO}"
PKGDEP__ARMV7HF="${PKGDEP__RETRO}"
PKGDEP__I486="${PKGDEP__RETRO}"
PKGDEP__LOONGSON2F="${PKGDEP__RETRO}"
PKGDEP__M68K="${PKGDEP__RETRO}"
PKGDEP__POWERPC="${PKGDEP__RETRO}"
PKGDEP__PPC64="${PKGDEP__RETRO}"
BUILDDEP="asciidoc"
PKGDES="A common protocol and set of tools for monitoring and managing power devices"

# Parameters adapted from Fedora
#
# FIXME: Disabled documentation generation.
# a2x: ERROR: "xmllint" --nonet --noout --valid "/var/cache/acbs/build/acbs.s7ca2l4h/nut-2.7.4/abbuild/docs/user-manual.xml" returned non-zero exit status 1
# Arch Linux: Build html-single documentation with asciidoc.
AUTOTOOLS_AFTER="--datadir=/usr/share/nut \
                 --with-user=nut \
                 --with-group=dialout \
                 --with-statepath=/run/nut \
                 --with-pidpath=/run/nut \
                 --with-altpidpath=/run/nut \
                 --sysconfdir=/etc/nut \
                 --with-cgipath=/var/www/nut-cgi-bin \
                 --with-drvpath=/usr/bin \
                 --with-systemdsystemunitdir=/usr/lib/systemd/system \
                 --with-pkgconfig-dir=/usr/lib/pkgconfig \
                 --with-udev-dir=/usr/lib/udev \
                 --without-doc \
                 --with-doc=html-single"
AUTOTOOLS_AFTER__RETRO=" \
                 --datadir=/usr/share/nut \
                 --with-user=nut \
                 --with-group=dialout \
                 --with-statepath=/run/nut \
                 --with-pidpath=/run/nut \
                 --with-altpidpath=/run/nut \
                 --sysconfdir=/etc/nut \
                 --with-cgipath=/var/www/nut-cgi-bin \
                 --with-drvpath=/usr/bin \
                 --with-systemdsystemunitdir=/usr/lib/systemd/system \
                 --with-pkgconfig-dir=/usr/lib/pkgconfig \
                 --with-udev-dir=/usr/lib/udev \
                 --without-doc"
AUTOTOOLS_AFTER__ARMV4="${AUTOTOOLS_AFTER__RETRO}"
AUTOTOOLS_AFTER__ARMV6HF="${AUTOTOOLS_AFTER__RETRO}"
AUTOTOOLS_AFTER__ARMV7HF="${AUTOTOOLS_AFTER__RETRO}"
AUTOTOOLS_AFTER__I486="${AUTOTOOLS_AFTER__RETRO}"
AUTOTOOLS_AFTER__LOONGSON2F="${AUTOTOOLS_AFTER__RETRO}"
AUTOTOOLS_AFTER__M68K="${AUTOTOOLS_AFTER__RETRO}"
AUTOTOOLS_AFTER__POWERPC="${AUTOTOOLS_AFTER__RETRO}"
AUTOTOOLS_AFTER__PPC64="${AUTOTOOLS_AFTER__RETRO}"
