From 98729ba2af954dcf41d8a1cf05aad6bea352905b Mon Sep 17 00:00:00 2001 From: Evgeny Ermakov Date: Sat, 15 Jan 2022 12:43:05 +1100 Subject: [PATCH] New package: libiio-0.23 --- common/shlibs | 1 + srcpkgs/libiio-devel | 1 + srcpkgs/libiio-tools | 1 + srcpkgs/libiio/template | 36 ++++++++++++++++++++++++++++++++++++ 4 files changed, 39 insertions(+) create mode 120000 srcpkgs/libiio-devel create mode 120000 srcpkgs/libiio-tools create mode 100644 srcpkgs/libiio/template diff --git a/common/shlibs b/common/shlibs index 38fb7b934ab..6e57e5eb769 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4178,3 +4178,4 @@ libnvidia-container.so.1 libnvidia-container-1.10.0_1 libnvidia-container-go.so.1 libnvidia-container-1.10.0_1 libqtspell-qt5.so.1 qtspell-1.0.1_1 libopensmtpd.so.0 libopensmtpd-0.7_1 +libiio.so.0 libiio-0.23_1 diff --git a/srcpkgs/libiio-devel b/srcpkgs/libiio-devel new file mode 120000 index 00000000000..0885e896972 --- /dev/null +++ b/srcpkgs/libiio-devel @@ -0,0 +1 @@ +libiio \ No newline at end of file diff --git a/srcpkgs/libiio-tools b/srcpkgs/libiio-tools new file mode 120000 index 00000000000..0885e896972 --- /dev/null +++ b/srcpkgs/libiio-tools @@ -0,0 +1 @@ +libiio \ No newline at end of file diff --git a/srcpkgs/libiio/template b/srcpkgs/libiio/template new file mode 100644 index 00000000000..9bbe7feb616 --- /dev/null +++ b/srcpkgs/libiio/template @@ -0,0 +1,36 @@ +# Template file for 'libiio' +pkgname=libiio +version=0.23 +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 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 " +license="LGPL-2.1-or-later" +homepage="https://analogdevicesinc.github.io/libiio" +distfiles="https://github.com/analogdevicesinc/libiio/archive/v${version}.tar.gz" +checksum=df1577740ea93dca732e7d7c04786600cb083117901dee793f3d38980754af00 + +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 + } +}