# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="Tool for diagnosing cdrom drive and digital data (audio) extraction"
HOMEPAGE="https://cdstatus.sourceforge.net"
SRC_URI="https://downloads.sourceforge.net/cdstatus/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ppc64 x86"

PATCHES=(
	"${FILESDIR}"/${PN}-0.97.03-respect-user-CFLAGS.patch
	"${FILESDIR}"/${PN}-0.97.03-fno-common.patch
)

pkg_postinst() {
	elog "Copy cdstatus.cfg from /usr/share/cdstatus.cfg"
	elog "to your home directory and edit as needed."
}