Skip to content

Instantly share code, notes, and snippets.

@darsor darsor/PKGBUILD
Created Feb 3, 2018

Embed
What would you like to do?
libiio-git PKGBUILD
# 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
You can’t perform that action at this time.