Created
February 3, 2018 22:21
-
-
Save darsor/a0c405f3c20dbcf657935067b563de13 to your computer and use it in GitHub Desktop.
libiio-git PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Emmanuel Gil Peyrot <emmanuel.peyrot@collabora.com> | |
# Contributor: Dana Sorensen <dana.r.sorensen@gmail.com> | |
_pkgname=libiio | |
pkgname="$_pkgname-git" | |
pkgver=v0.14.r1.g7d29b98 | |
pkgrel=1 | |
pkgdesc="Library for interfacing with IIO devices" | |
arch=('i686' 'x86_64' 'armv7h' 'armv6h') | |
url="https://github.com/analogdevicesinc/libiio" | |
license=('LGPL2.1') | |
provides=('libiio') | |
conflicts=('libiio') | |
depends=('libusb' 'libaio' 'libxml2') | |
optdepends=('python: python bindings') | |
makedepends=('git' 'cmake') | |
source=("$_pkgname::git+https://github.com/analogdevicesinc/libiio") | |
md5sums=('SKIP') | |
pkgver() { | |
cd "$srcdir/$_pkgname" | |
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | |
} | |
prepare() { | |
mkdir -p "$srcdir/$_pkgname/build" | |
} | |
build() { | |
cd "$srcdir/$_pkgname/build" | |
cmake .. \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DCMAKE_INSTALL_LIBDIR=lib \ | |
-DCMAKE_INSTALL_SBINDIR=bin \ | |
-DUDEV_RULES_INSTALL_DIR=/usr/lib/udev/rules.d \ | |
-DCSHARP_BINDINGS=OFF | |
make | |
} | |
package() { | |
cd "$srcdir/$_pkgname/build" | |
make DESTDIR="$pkgdir" install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment