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

EAPI=8

inherit cmake

COMMIT_HASH="e1b68da3699c971fd8850e433dcc394bd5ded060"
DESCRIPTION="Encodes larger files into a series of QR codes so they can cross air gaps"
HOMEPAGE="https://github.com/nunchuk-io/bbqr-cpp"
SRC_URI="${HOMEPAGE}/archive/${COMMIT_HASH}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT_HASH}"

LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"

RDEPEND="
	>=sys-libs/zlib-1.3.1:=
"
DEPEND="${RDEPEND}"

PATCHES=(
	"${FILESDIR}/install.patch"
)

src_configure() {
	local mycmakeargs=(
		-DBBQR_BUILD_EXAMPLES:BOOL=OFF
	)
	cmake_src_configure
}