2025-01-08 17:38:29 -06:00

28 lines
870 B
Bash

# Template file for 'spicy'
pkgname=spicy
version=1.12.0
revision=1
build_style=cmake
build_helper=qemu
hostmakedepends="flex python3"
makedepends="libfl-devel zlib-devel"
short_desc="Generate Robust Parsers for Protocols & File Formats"
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="BSD-3-Clause"
homepage="https://docs.zeek.org/projects/spicy/en/latest/"
distfiles="https://github.com/zeek/spicy/releases/download/v${version}/spicy.tar.gz"
checksum=4b07c9ee1b4ebebc386d546ef456de29e218c28f3b24326a5135169d3ed9c005
if [ "$CROSS_BUILD" ]; then
if [ $XBPS_TARGET_WORDSIZE = 32 ]; then
broken="what(): Value too large for defined data type: '/builddir/spicy-1.12.0/build/bin/hilti-config'"
fi
export CROSSCOMPILE_EMULATOR="/usr/bin/qemu-${XBPS_TARGET_QEMU_MACHINE}-static"
else
export CROSSCOMPILE_EMULATOR=
fi
post_install() {
vlicense LICENSE
}