PKGNAME=capstone
PKGSEC=devel
PKGDES="A lightweight multi-platform, multi-architecture disassembly framework"
PKGDEP="python-3"
BUILDDEP="setuptools"

# FIXME: LTO hides capstone's APIs for sandsifter and makes sandsifter have
# undefined reference to them, so disable LTO temporarily.
NOLTO=1
ABTYPE=cmakeninja
CMAKE_AFTER="-DCAPSTONE_BUILD_TESTS=OFF \
             -DBUILD_SHARED_LIBS=ON"

PKGBREAK="binwalk<=2.3.4-2 cutter<=2.1.0 qemu<=8.2.0 radare2<=5.8.8"
