[arch-commits] Commit in libiio/repos (2 files)
David Runge
dvzrv at gemini.archlinux.org
Mon Aug 9 21:13:09 UTC 2021
Date: Monday, August 9, 2021 @ 21:13:08
Author: dvzrv
Revision: 997292
archrelease: copy trunk to community-staging-x86_64
Added:
libiio/repos/community-staging-x86_64/
libiio/repos/community-staging-x86_64/PKGBUILD
(from rev 997291, libiio/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: libiio/repos/community-staging-x86_64/PKGBUILD (from rev 997291, libiio/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-08-09 21:13:08 UTC (rev 997292)
@@ -0,0 +1,42 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+# needs rebuild on minor soname bumps
+
+pkgname=libiio
+pkgver=0.22
+pkgrel=1
+pkgdesc="Interface to the Linux Industrial Input/Output (IIO) Subsystem"
+arch=('x86_64')
+url="https://github.com/analogdevicesinc/libiio"
+license=('LGPL2.1')
+depends=('gcc-libs' 'glibc' 'libaio' 'libserialport' 'libxml2')
+makedepends=('avahi' 'cmake' 'libusb' 'python' 'python-setuptools')
+optdepends=('python: Python bindings')
+provides=('libiio.so')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/analogdevicesinc/${pkgname}/archive/v${pkgver}.tar.gz")
+sha512sums=('82826c3f4974b279d8f22de4eaa415bc61da242c1474c59c6e744a1083f015ab42cdf0573816bd02b7aee6fee6ed86a0504c9f28de35f925fa8e5c9811dd8648')
+
+build() {
+ cd "$pkgname-$pkgver"
+ cmake -DCMAKE_INSTALL_PREFIX='/usr' \
+ -DCMAKE_INSTALL_SBINDIR='bin' \
+ -DCMAKE_INSTALL_LIBDIR='lib' \
+ -DCMAKE_BUILD_TYPE='None' \
+ -DPYTHON_BINDINGS=ON \
+ -DSYSTEMD_UNIT_INSTALL_DIR='/usr/lib/systemd/system' \
+ -DUDEV_RULES_INSTALL_DIR='/usr/lib/udev/rules.d' \
+ -DWITH_MAN=ON \
+ -DWITH_SYSTEMD=ON \
+ -Wno-dev \
+ -B build \
+ -S .
+ make -C build VERBOSE=1
+}
+
+package() {
+ depends+=('libavahi-client.so' 'libavahi-common.so' 'libusb-1.0.so')
+ cd "$pkgname-$pkgver"
+ make DESTDIR="$pkgdir/" -C build install
+ install -vDm 644 {CONTRIBUTING,Contributors,README}.md \
+ -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
More information about the arch-commits
mailing list