# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack import *


class Xcursorgen(AutotoolsPackage):
    """xcursorgen prepares X11 cursor sets for use with libXcursor."""

    homepage = "http://cgit.freedesktop.org/xorg/app/xcursorgen"
    url      = "https://www.x.org/archive/individual/app/xcursorgen-1.0.6.tar.gz"

    version('1.0.6', sha256='4559f2b6eaa93de4cb6968679cf40e39bcbe969b62ebf3ff84f6780f8048ef8c')

    depends_on('libx11')
    depends_on('libxcursor')
    depends_on('libpng@1.2.0:')

    depends_on('pkgconfig', type='build')
    depends_on('util-macros', type='build')
