diff options
author | Tom Alexandrowicz | 2017-01-10 23:16:58 -0500 |
---|---|---|
committer | Tom Alexandrowicz | 2017-01-10 23:16:58 -0500 |
commit | dc02544c540c1ebfa0538b066e77b279473f2b5f (patch) | |
tree | f2e21d3470754694eb5c1d6f77095858565bf076 | |
download | aur-dc02544c540c1ebfa0538b066e77b279473f2b5f.tar.gz |
Initial commit of iguanair-lirc lirc driver
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | Makefile.patch | 32 | ||||
-rw-r--r-- | PKGBUILD | 35 |
4 files changed, 91 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cabc935cda84 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = iguanair-lirc + pkgdesc = LIRC driver for IguanaIR devices + pkgver = e0cb127_e23b9d3 + pkgrel = 1 + url = https://github.com/iguanaworks/iguanair-lirc + arch = i686 + arch = x86_64 + license = GPL2 + makedepends = git + makedepends = cmake + depends = lirc + source = iguanair::git+https://github.com/iguanaworks/iguanair + source = iguanair-lirc::git+https://github.com/iguanaworks/iguanair-lirc.git + md5sums = SKIP + md5sums = SKIP + +pkgname = iguanair-lirc + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..65009eac1b39 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +src +pkg +iguanair +iguanair-lirc +*.tar.gz +*.tar.xz diff --git a/Makefile.patch b/Makefile.patch new file mode 100644 index 000000000000..a9f7e183fd31 --- /dev/null +++ b/Makefile.patch @@ -0,0 +1,32 @@ +diff --git Makefile Makefile +old mode 100755 +new mode 100644 +index c6a7f7a..71c4a69 +--- Makefile ++++ Makefile +@@ -18,19 +18,18 @@ PLUGINDIR ?= $(shell pkg-config --variable=plugindir lirc-driver) + CONFIGDIR ?= $(shell pkg-config --variable=configdir lirc-driver)
+ PLUGINDOCS ?= $(shell pkg-config --variable=plugindocs lirc-driver)
+
+-include $(PLUGINDOCS)/plugindocs.mk
++# include $(PLUGINDOCS)/plugindocs.mk
+
+ $(driver).o: $(driver).c
+
+ $(driver).so: $(driver).o
+- gcc --shared -fpic $(LDFLAGS) -o $@ $<
++ gcc --shared -fpic $(LDFLAGS) -o $@ $< $(IGUANADIR)/*.o
+
+ install: $(driver).so
+- install $< $(PLUGINDIR)
+- install $(driver).conf $(CONFIGDIR)
+- install $(driver).html $(PLUGINDOCS)
+- install -m 644 60-blacklist-kernel-iguanair.conf /etc/modprobe.d
+- $(MAKE) update
++ install $< $(PKGDIR)$(PLUGINDIR)
++ install $(driver).conf $(PKGDIR)$(CONFIGDIR)
++ install $(driver).html $(PKGDIR)$(PLUGINDOCS)
++ install -m 644 60-blacklist-kernel-iguanair.conf $(PKGDIR)/etc/modprobe.d
+
+ clean:
+ rm -f *.o *.so
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c88bd7efe46c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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/CMakeFiles/iguanaIR.dir/" +} +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 +} |