38 lines
1.2 KiB
Bash
38 lines
1.2 KiB
Bash
# Template file for 'libiio'
|
|
pkgname=libiio
|
|
version=0.25
|
|
revision=2
|
|
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-setuptools 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=21972599a3c143ab1f98002ad2b3f28f4aff927fde5f677478311cd4e517730c
|
|
|
|
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
|
|
}
|
|
}
|