# Template file for 'i2c-tools'
pkgname=i2c-tools
version=4.2
revision=2
build_style=gnu-makefile
make_install_args="sbindir=/usr/bin"
depends="perl"
short_desc="Heterogeneous set of I2C tools"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-or-later"
homepage="https://packages.debian.org/sid/i2c-tools"
distfiles="${DEBIAN_SITE}/main/i/${pkgname}/${pkgname}_${version}.orig.tar.xz"
checksum=37f2dabc7082d185903ff21d1f584b5dcb4dd2eb2c879bbd8d7c50ae900dacd6
system_groups="i2c"

post_install() {
	vinstall "${FILESDIR}/45-i2c-tools.rules" 644 usr/lib/udev/rules.d
}

i2c-tools-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.a"
		vmove "usr/lib/*.so"
	}
}
