[arch-commits] Commit in libiio/trunk (PKGBUILD)
David Runge
dvzrv at archlinux.org
Wed Jun 17 14:39:37 UTC 2020
Date: Wednesday, June 17, 2020 @ 14:39:36
Author: dvzrv
Revision: 646350
upgpkg: libiio 0.21-1: Upgrading to 0.21.
Adding python-setuptools to makedepends (now used to build the python bindings).
Adding all sodeps in package() and moving the respective packages to makedepends.
Applying latest cmake packaging guidelines.
Adding man pages and docs.
Modified:
libiio/trunk/PKGBUILD
----------+
PKGBUILD | 36 +++++++++++++++++++-----------------
1 file changed, 19 insertions(+), 17 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-06-17 14:17:22 UTC (rev 646349)
+++ PKGBUILD 2020-06-17 14:39:36 UTC (rev 646350)
@@ -1,38 +1,40 @@
# Maintainer: David Runge <dvzrv at archlinux.org>
pkgname=libiio
-pkgver=0.20
+pkgver=0.21
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=('glibc' 'libaio' 'libserialport' 'libusb-1.0.so' 'libxml2')
+depends=('gcc-libs' 'glibc' 'libaio' 'libserialport' 'libxml2')
+makedepends=('cmake' 'libusb' 'python' 'python-setuptools')
optdepends=('python: Python bindings')
-makedepends=('cmake' 'python' 'python-setuptools')
provides=('libiio.so')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/analogdevicesinc/${pkgname}/archive/v${pkgver}.tar.gz")
-sha512sums=('2b6ef9f67642db4b06ba33f5c5b7b3fa3043c8963185c138e9946e01aaa790ad1453f3f522af18c4526da2b087752ec686228705d1a312e6b99146ded38b943e')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/analogdevicesinc/${pkgname}/archive/${pkgver}.tar.gz")
+sha512sums=('5bbacd6a1141654f4825f00c1c2b27223e6cc324c80d7bcbb49e29997a83d585e45c0c52331ca10ee881c2f340b535984c3d667b61d8377a77e5c0f5cb1d2dc0')
-prepare() {
- sed -i '/self._check_libiio_installed()/d' "$pkgname-$pkgver"/bindings/python/setup.py.cmakein
-}
-
build() {
cd "$pkgname-$pkgver"
- cmake -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_SBINDIR=bin \
- -DCMAKE_INSTALL_LIBDIR=lib \
- -DUDEV_RULES_INSTALL_DIR=/usr/lib/udev/rules.d \
- -DSYSTEMD_UNIT_INSTALL_DIR=/usr/lib/systemd/system \
+ 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 \
- -DPYTHON_BINDINGS=ON \
- -Bbuild \
- .
+ -Wno-dev \
+ -B build \
+ -S .
make -C build VERBOSE=1
}
package() {
+ depends+=('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