Files
guru/dev-embedded/qdl/qdl-2024.4.9.ebuild
Quincy Fleming d0fa743510 dev-embedded/qdl: ebuild enhancements
Signed-off-by: Quincy Fleming <quincyf467@protonmail.com>
2024-05-16 12:07:43 -05:00

36 lines
833 B
Bash

# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Tool to communicate with Qualcomm System On a Chip bootroms"
COMMIT_ID="a629f43428ebd17080f55543f893d45694234f75"
HOMEPAGE="https://github.com/linux-msm/qdl"
SRC_URI="https://github.com/linux-msm/qdl/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT_ID}"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
BDEPEND="
virtual/libudev
virtual/pkgconfig
dev-libs/libxml2
"
src_compile() {
PKG_CONFIG=$(tc-getPKG_CONFIG)
emake CC=$(tc-getCC) \
"CFLAGS=${CFLAGS} `${PKG_CONFIG} --cflags libxml-2.0`" \
"LDFLAGS=${LDFLAGS} `${PKG_CONFIG} --libs libxml-2.0 libudev`"
}
src_install() {
emake prefix="${EPREFIX}/usr" DESTDIR="${D}" install
dodoc {README,LICENSE}
}