# for get_kernel_version()
. $GRIMOIRE/FUNCTIONS

           SPELL=linux-cpupower
# Linux kernel version containing the cpupower tool source
         VERSION=$(get_kernel_version)
          SOURCE=linux-${VERSION%.*}.tar.xz
         SOURCE2=linux-${VERSION%.*}.tar.sign
   SOURCE_URL[0]=${KERNEL_URL}/pub/linux/kernel/v${VERSION%%.*}.x/${SOURCE}
# Uncompressed tarball is signed
  SOURCE2_URL[0]=${KERNEL_URL}/pub/linux/kernel/v${VERSION%%.*}.x/${SOURCE2}
      SOURCE_GPG="kernel.gpg:${SOURCE/.xz/.sign}:UPSTREAM_HASH"
  SOURCE2_IGNORE='signature'
# If not a .0 release, download the patch
if [[ "${VERSION##*.}" != '0' ]]; then
         SOURCE3=patch-${VERSION}.xz
         SOURCE4=patch-${VERSION}.sign
  SOURCE3_URL[0]=${KERNEL_URL}/pub/linux/kernel/v${VERSION%%.*}.x/${SOURCE3}
  SOURCE4_URL[0]=${KERNEL_URL}/pub/linux/kernel/v${VERSION%%.*}.x/${SOURCE4}
     SOURCE3_GPG="kernel.gpg:${SOURCE3/.xz/.sign}:UPSTREAM_HASH"
  SOURCE4_IGNORE='signature'
fi
SOURCE_DIRECTORY=$BUILD_DIRECTORY/${SPELL}-${VERSION}
      LICENSE[0]=GPLv2
        WEB_SITE=http://www.kernel.org/
        KEYWORDS="power"
         ENTERED=20160908
           SHORT=""
cat << EOF
"libcpupower" is a library which offers a unified access method for userspace
tools and programs to the cpufreq core and drivers in the Linux kernel. This
allows for code reduction in userspace tools, a clean implementation of
the interaction to the cpufreq core, and support for both the sysfs and proc
interfaces

"cpupower" is a tool to examine and manage your processor's power saving
features.
EOF
