# Description: A suite of programs for recording CDs and DVDs
# URL: https://en.wikipedia.org/wiki/Cdrkit
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: file libcap

name=cdrkit
version=1.1.11
release=5
source=(http://pkgs.fedoraproject.org/repo/pkgs/cdrkit/cdrkit-1.1.11.tar.gz/efe08e2f3ca478486037b053acd512e9/cdrkit-1.1.11.tar.gz
	cdrkit-1.1.9-efi-boot.patch)

build () {
	patch -d $name-$version -p1 -i $SRC/cdrkit-1.1.9-efi-boot.patch
	cmake -S $name-$version -B build -G Ninja \
		-D CMAKE_BUILD_TYPE=Release \
		-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -fcommon" \
		-D CMAKE_INSTALL_PREFIX=/usr \
		-D MANSUBDIR=share/man \
		-Wno-dev
	cmake --build build
	DESTDIR=$PKG cmake --install build
}
