first() {
    setup_hint['.']='sdesc: The "RPM package management system"
ldesc: "The RPM Package Manager (RPM) is a powerful command line driven
package management system capable of installing, uninstalling,
verifying, querying, and updating software packages. Each software
package consists of an archive of files along with information about
the package like its version, a description, etc."
category: Utils
requires: bash gawk coreutils libintl2 zlib0 libintl8 libgcc1 libdb4.8 libbz2_1 libnss3'

    setup_hint['.build']='sdesc: "Scripts and executable programs used to build RPM packages"
ldesc: "The rpm-build package contains the scripts and executable programs
that are used to build packages using the RPM Package Manager."
category: Utils
requires: rpm make patch perl
external-source: rpm'

    setup_hint['.devel']='sdesc: "Development files for manipulating RPM packages"
ldesc: "This package contains the RPM C library and header files. These
development files will simplify the process of writing programs that
manipulate RPM packages and databases. These files are intended to
simplify the process of creating graphical package managers or any
other tools that need an intimate knowledge of RPM packages in order
to function.

This package should be installed if you want to develop programs that
will manipulate RPM packages and databases."
Category: devel
requires: rpm
external-source: rpm'
}

preconfig() {
    export PKG_CONFIG_PATH=/usr/local/$triple/lib/pkgconfig
    export CPATH=/usr/local/$triple/include/nss:/usr/local/$triple/include/nspr
    CONFIGOPTS="$CONFIGOPTS --with-external-db --without-lua"
}

prepackage() {
    addpkg 'devel' 'usr/lib/(pkgconfig|.*\.(la|a))|usr/include'
    addpkg 'build' 'usr/(bin|share/man/.*)/(rpmbuild|gendiff|rpmspec|rpmgraph)|usr/lib/rpm/(?!macros|platform|rpm\.(daily|log|supp)|rpm2cpio|rpmdb|rpmpopt|rpmrc|tgpg)'
}
