void-packages/srcpkgs/libiio/template

37 lines
1.2 KiB
Bash

# Template file for 'libiio'
pkgname=libiio
version=0.24
revision=1
build_style=cmake
configure_args="-DUDEV_RULES_INSTALL_DIR=/usr/lib/udev/rules.d -DWITH_DOC=YES
-DWITH_SERIAL_BACKEND=YES -DHAVE_DNS_SD=YES -DPYTHON_BINDINGS=YES"
hostmakedepends="bison flex doxygen pkg-config python3 python3-Sphinx python3-sphinx_rtd_theme"
makedepends="avahi-libs-devel libaio-devel libserialport-devel libusb-devel libxml2-devel"
short_desc="Library for interfacing with local and remote Linux IIO devices"
maintainer="Evgeny Ermakov <evgeny.v.ermakov@gmail.com>"
license="LGPL-2.1-or-later"
homepage="https://analogdevicesinc.github.io/libiio"
distfiles="https://github.com/analogdevicesinc/libiio/archive/v${version}.tar.gz"
checksum=a2b5d848531ea64fd9f95327dfd5a588bd227d9577281ec375e822702c6a52d5
libiio-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.so
vmkdir usr/share/doc/libiio
mv ${DESTDIR}/usr/share/doc/libiio0-doc/v${version}/* \
${PKGDESTDIR}/usr/share/doc/libiio
}
}
libiio-tools_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - utilities"
pkg_install() {
vmove usr/bin
}
}