diff options
author | Emmanuel Gil Peyrot | 2016-05-20 21:51:27 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot | 2016-05-20 21:51:27 +0100 |
commit | 3bc237e4d70304b871da6ae8adfb83b16193b4f0 (patch) | |
tree | 263945e824c147d3ea3b1c6e7d00925175bc7457 | |
download | aur-3bc237e4d70304b871da6ae8adfb83b16193b4f0.tar.gz |
Initial commit.
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 40 |
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f298c4cfde56 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +# Generated by mksrcinfo v8 +# Fri May 20 20:51:17 UTC 2016 +pkgbase = libiio-git + pkgdesc = TODO + pkgver = v0.6.r205.gb325202 + pkgrel = 1 + url = https://wiki.analog.com/resources/tools-software/linux-software/libiio + arch = i686 + arch = x86_64 + arch = armv7h + license = TODO + makedepends = git + options = debug + options = !strip + source = libiio::git+https://github.com/analogdevicesinc/libiio + md5sums = SKIP + +pkgname = libiio-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f433d5eda936 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Emmanuel Gil Peyrot <emmanuel.peyrot@collabora.com> + +_pkgname=libiio +pkgname="$_pkgname-git" +pkgver=v0.6.r205.gb325202 +pkgrel=1 +pkgdesc="TODO" +arch=('i686' 'x86_64' 'armv7h') +url="https://wiki.analog.com/resources/tools-software/linux-software/libiio" +license=('TODO') +depends=() +makedepends=('git') +source=("$_pkgname::git+https://github.com/analogdevicesinc/libiio") +md5sums=('SKIP') +options=('debug' '!strip') + +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=/usr/lib \ + -DCMAKE_INSTALL_SBINDIR=/usr/bin + make +} + +package() { + cd "$srcdir/$_pkgname/build" + make DESTDIR="$pkgdir" install +} + +# vim:set ts=2 sts=2 sw=2 et: |