# Template file for 'openfpgaloader'
pkgname=openfpgaloader
version=1.1.1
revision=1
build_style=cmake
configure_args="
 -DENABLE_UDEV=ON
 -DENABLE_CMSISDAP=ON
 -DCMAKE_DISABLE_FIND_PACKAGE_LibFTDI1=ON"
hostmakedepends="pkg-config"
makedepends="eudev-libudev-devel hidapi-devel libftdi1-devel libusb-devel zlib-devel"
short_desc="Universal utility for programming FPGA"
maintainer="Mohamad Alsadhan <mo@sdhn.cc>"
license="Apache-2.0"
homepage="https://trabucayre.github.io/openFPGALoader/"
changelog="https://github.com/trabucayre/openFPGALoader/releases"
distfiles="https://github.com/trabucayre/openFPGALoader/archive/refs/tags/v${version}.tar.gz"
checksum=ca965f933c52a2a9dbb318df4d4de70fac5f095a8e64523f81036ab467a4b567

post_install() {
	vinstall 99-openfpgaloader.rules 644 usr/lib/udev/rules.d/
}
