void-packages/srcpkgs/i2c-tools/template
2021-12-21 19:45:51 +01:00

29 lines
807 B
Bash

# Template file for 'i2c-tools'
pkgname=i2c-tools
version=4.3
revision=1
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=1f899e43603184fac32f34d72498fc737952dbc9c97a8dd9467fadfdf4600cf9
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/share/man/man3
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}