pkgname = "libcdio"
pkgver = "2.1.0"
pkgrel = 0
build_style = "gnu_configure"
make_cmd = "gmake"
hostmakedepends = ["gmake", "pkgconf"]
makedepends = ["ncurses-devel", "libcddb-devel", "linux-headers"]
pkgdesc = "CD-ROM access library"
maintainer = "q66 <q66@chimera-linux.org>"
license = "GPL-3.0-or-later"
url = "https://www.gnu.org/software/libcdio"
source = f"$(GNU_SITE)/{pkgname}/{pkgname}-{pkgver}.tar.bz2"
sha256 = "8550e9589dbd594bfac93b81ecf129b1dc9d0d51e90f9696f1b2f9b2af32712b"
# tests a cd-rom drive, plus fails realpath test
options = ["!check"]

@subpackage("libcdio-devel")
def _devel(self):
    return self.default_devel()

@subpackage("libcdio-progs")
def _progs(self):
    return self.default_progs()
