blob: cad12d7eb2b81c1d111db65b74e74c72a68693ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Maintainer: Tom Ingleby <tom@ewsting.org>
pkgname='mraa'
pkgver=2.0.0
pkgrel=1
pkgdesc="Low Level Skeleton Library for IO Communication on GNU/Linux platforms."
makedepends=('git' 'cmake' 'swig')
depends=('json-c')
optdepends=('python: for Python support' 'python2: for Python2 support')
url="https://github.com/intel-iot-devkit/mraa"
license=('MIT')
arch=('x86_64' 'i686')
source=(git+https://github.com/intel-iot-devkit/mraa.git#tag=v$pkgver)
md5sums=('SKIP')
build() {
mkdir -p mraa/build
cd mraa/build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DINSTALLTOOLS=on -DBUILDSWIGNODE=off \
-DCMAKE_INSTALL_LIBDIR=/usr/lib ../
make -j
}
package() {
cd $srcdir/mraa/build
make DESTDIR="${pkgdir}/" install
}
|