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

EAPI=8

DESCRIPTION="Dynamic instrumentation toolkit for reverse-engineers and security researchers"
HOMEPAGE="https://github.com/frida/frida"
SRC_URI="
	amd64? (
		https://github.com/frida/frida/releases/download/${PV}/${PN}-devkit-${PV}-linux-x86_64.tar.xz
	)
	x86? (
		https://github.com/frida/frida/releases/download/${PV}/${PN}-devkit-${PV}-linux-x86.tar.xz
	)
	arm64? (
		https://github.com/frida/frida/releases/download/${PV}/${PN}-devkit-${PV}-linux-arm64.tar.xz
	)"
S="${WORKDIR}"

LICENSE="wxWinLL-3.1"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"

QA_PREBUILT="usr/lib*/libfrida-core*"

src_install() {
	doheader frida-core.h
	dolib.a libfrida-core.a

	#gobject inspection /usr/share? frida-core.gir
	#https://meetup.toast.com/posts/346

	# frida-core-example.c
}
