blob: 85974b3b883e0a38fba6261391fa45a161c0bff8 (
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
29
30
31
32
33
34
35
|
# $Id$
# Maintainer: Tom Alexandrowicz <tom@alexandrowicz.ca>
pkgname='iguanair-lirc'
pkgver=e0cb127_e23b9d3
pkgrel=1
pkgdesc="LIRC driver for IguanaIR devices"
arch=('i686' 'x86_64')
url="https://github.com/iguanaworks/iguanair-lirc"
license=('GPL2')
depends=('lirc')
makedepends=('git' 'cmake')
source=("iguanair::git+https://github.com/iguanaworks/iguanair"
"$pkgname::git+https://github.com/iguanaworks/iguanair-lirc.git")
md5sums=('SKIP' 'SKIP')
pkgver() {
echo $(git -C $srcdir/iguanair rev-parse --short HEAD)_$(git -C $srcdir/$pkgname rev-parse --short HEAD)
}
build() {
cd $srcdir/iguanair/software/usb_ir
cmake .
make iguanaIR
cd $srcdir/$pkgname
patch -p0 < $startdir/Makefile.patch
make IGUANADIR="$srcdir/iguanair/software/usb_ir" CFLAGS+="-I $srcdir/iguanair/software/usb_ir" CFLAGS+='-D PLUGINDOCS="\"X\""' CFLAGS+='-fPIC'
}
package() {
cd $pkgname
mkdir -p "$pkgdir$(pkg-config --variable=plugindir lirc-driver)"
mkdir -p "$pkgdir$(pkg-config --variable=configdir lirc-driver)"
mkdir -p "$pkgdir$(pkg-config --variable=plugindocs lirc-driver)"
mkdir -p "$pkgdir/etc/modprobe.d"
make PKGDIR="$pkgdir" install
}
|