diff options
author | Cecil <knoppmyth@gmail.com> | 2011-07-22 19:42:44 (GMT) |
---|---|---|
committer | Cecil <knoppmyth@gmail.com> | 2011-07-22 19:42:44 (GMT) |
commit | 5349364d8cb03780a54d04222a43e7f626e03669 (patch) | |
tree | b48ed0e5d138722d0230281a85caaddedc8423c6 /abs/core/lirc/PKGBUILD | |
parent | 1010b07ad1e05651af749df298008cd1989eed8b (diff) | |
download | linhes_pkgbuild-5349364d8cb03780a54d04222a43e7f626e03669.zip linhes_pkgbuild-5349364d8cb03780a54d04222a43e7f626e03669.tar.gz linhes_pkgbuild-5349364d8cb03780a54d04222a43e7f626e03669.tar.bz2 |
lirc:Bumped to latest.
Diffstat (limited to 'abs/core/lirc/PKGBUILD')
-rw-r--r-- | abs/core/lirc/PKGBUILD | 140 |
1 files changed, 92 insertions, 48 deletions
diff --git a/abs/core/lirc/PKGBUILD b/abs/core/lirc/PKGBUILD index e8ddd4d..8f7a5ae 100644 --- a/abs/core/lirc/PKGBUILD +++ b/abs/core/lirc/PKGBUILD @@ -1,59 +1,103 @@ -# $Id: PKGBUILD 100623 2010-11-24 21:20:40Z tpowa $ +# $Id: PKGBUILD 127217 2011-06-11 09:10:14Z ibiru $ # Maintainer: Paul Mattal <paul@archlinux.org> -pkgname=lirc -pkgver=0.9.0.pre1 -pkgrel=3 -_kernver=2.6.37-LinHES -pkgdesc="Linux Infrared Remote Control kernel modules for stock arch kernel" +pkgbase=lirc +pkgname=('lirc' 'lirc-utils') +pkgver=0.9.0 +pkgrel=4 +epoch=1 +_kernver=2.6.39-LinHES arch=('i686' 'x86_64') url="http://www.lirc.org/" license=('GPL') -#depends=('lirc-utils' 'kernel26>=2.6.36' 'kernel26<2.6.37') -depends=('lirc-utils' 'kernel26>=2.6.37') -#makedepends=('help2man' 'kernel26-headers>=2.6.36' 'kernel26-headers<2.6.37') -makedepends=('help2man' 'kernel26-headers>=2.6.37') -replaces=('lirc+pctv') -options=('!makeflags') -install=$pkgname.install -source=(http://www.lirc.org/software/snapshots/lirc-0.9.0-pre1.tar.bz2 - #"http://prdownloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2" - ) -md5sums=('13ba59178adee4e6be8a9a1966ab3133') +makedepends=('help2man' 'kernel26-headers>=2.6.39' 'kernel26-headers<2.6.40' 'alsa-lib' 'libx11' 'libftdi' 'libirman' 'python') +options=('!makeflags' '!strip') +source=(http://prdownloads.sourceforge.net/${pkgbase}/${pkgbase}-${pkgver}.tar.bz2 + lirc_wpc8769l.patch + lircd-handle-large-config.patch + lirc_atiusb-kfifo.patch + kernel-2.6.39.patch + lircd lircmd lirc.logrotate lircd.conf irexec.conf irexecd) +md5sums=('b232aef26f23fe33ea8305d276637086' + '1cce37e18e3f6f46044abab29016d18f' + 'b70cc9640505205446ec47b7d4779f38' + '1f8b104a2365d9f93404b143f499059b' + '087a7d102e1c96bf1179f38db2b0b237' + '8d0e238dc0eda95e340fe570605da492' + '85f7fdac55e5256967241864049bf5e9' + '3deb02604b37811d41816e9b4385fcc3' + '5b1f8c9cd788a39a6283f93302ce5c6e' + 'f0c0ac930326168035f0c8e24357ae55' + '69d099e6deedfa3c1ee2b6e82d9b8bfb') build() { - # configure - cd ${srcdir}/lirc-0.9.0-pre1 - ./configure --enable-sandboxed --prefix=/usr \ - --with-driver=all --with-kerneldir=/usr/src/linux-${_kernver}/ \ - --with-moduledir=/lib/modules/${_kernver}/kernel/drivers/misc \ - --with-transmitter - - # disable parallel and bt829 - # because of incompatibility with smp systems - sed -i -e "s:lirc_parallel::" -e "s:lirc_bt829::" \ - Makefile drivers/Makefile drivers/*/Makefile tools/Makefile - # lirc_i2c lirc_igorplugusb lirc_imon lirc_it87 lirc_ite8709 - # lirc_sasem lirc_serial lirc_sir lirc_ttusbir lirc_zilog - # because part of kernel 2.6.36 staging tree - sed -i -e "s:lirc_i2c::" -e "s:lirc_igorplugusb::" -e "s:lirc_imon::" \ - -e "s:lirc_it87::" -e "s:lirc_ite8709::" -e "s:lirc_sasem::" \ - -e "s:lirc_serial::" -e "s:lirc_sir::" -e "s:lirc_ttusbir::" \ - -e "s:lirc_zilog::" Makefile drivers/Makefile drivers/*/Makefile tools/Makefile - # disable lirc_gpio due to brokeness of kernel 2.6.23 - sed -i -e "s:lirc_gpio::" \ - Makefile drivers/Makefile drivers/*/Makefile tools/Makefile - - # build - cd drivers - make + cd "${srcdir}/lirc-${pkgver}" + patch -Np1 -i "${srcdir}/lirc_wpc8769l.patch" + patch -Np1 -i "${srcdir}/lircd-handle-large-config.patch" + patch -Np1 -i "${srcdir}/lirc_atiusb-kfifo.patch" + patch -Np1 -i "${srcdir}/kernel-2.6.39.patch" + + sed -i '/AC_PATH_XTRA/d' configure.ac + sed -e 's/@X_CFLAGS@//g' \ + -e 's/@X_LIBS@//g' \ + -e 's/@X_PRE_LIBS@//g' \ + -e 's/@X_EXTRA_LIBS@//g' -i Makefile.am tools/Makefile.am + libtoolize + autoreconf + + PYTHON=python2 ./configure --enable-sandboxed --prefix=/usr \ + --with-driver=all --with-kerneldir=/usr/src/linux-${_kernver}/ \ + --with-moduledir=/lib/modules/${_kernver}/kernel/drivers/misc \ + --with-transmitter + + # Remove drivers already in kernel + sed -e "s:lirc_dev::" -e "s:lirc_bt829::" -e "s:lirc_igorplugusb::" \ + -e "s:lirc_imon::" -e "s:lirc_parallel::" -e "s:lirc_sasem::" \ + -e "s:lirc_serial::" -e "s:lirc_sir::" -e "s:lirc_ttusbir::" \ + -i Makefile drivers/Makefile drivers/*/Makefile tools/Makefile + make +} + +package_lirc() { + pkgdesc="Linux Infrared Remote Control kernel modules for stock arch kernel" + depends=('lirc-utils' 'kernel26>=2.6.39' 'kernel26<2.6.40') + replaces=('lirc+pctv') + install=lirc.install + + cd "${srcdir}/lirc-${pkgver}/drivers" + make DESTDIR="${pkgdir}" install + + # set the kernel we've built for inside the install script + sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" "${startdir}/lirc.install" + # gzip -9 modules + find "${pkgdir}" -name '*.ko' -exec gzip -9 {} \; } -package() { - cd ${srcdir}/lirc-0.9.0-pre1/drivers - make DESTDIR=${pkgdir} install +package_lirc-utils() { + pkgdesc="Linux Infrared Remote Control utils" + depends=('alsa-lib' 'libx11' 'libftdi' 'libirman') + optdepends=('python2: pronto2lirc utility') + options=('strip' '!libtool') + backup=('etc/conf.d/lircd.conf' 'etc/conf.d/irexec.conf') + + cd "${srcdir}/lirc-${pkgver}" + make DESTDIR="${pkgdir}" install + install -d "${pkgdir}/usr/share/lirc" "${pkgdir}/etc/rc.d" + cp "${srcdir}"/{lircd,lircmd,irexecd} "${pkgdir}/etc/rc.d" + cp -rp remotes "${pkgdir}/usr/share/lirc" + chmod -R go-w "${pkgdir}/usr/share/lirc/" + + # install the logrotate config + install -Dm644 "${srcdir}/lirc.logrotate" "${pkgdir}/etc/logrotate.d/lirc" + + # install conf.d file + install -Dm644 "${srcdir}/lircd.conf" "${pkgdir}/etc/conf.d/lircd.conf" + + # install conf.d file + install -Dm644 "${srcdir}/irexec.conf" "${pkgdir}/etc/conf.d/irexec.conf" - # set the kernel we've built for inside the install script - sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \ - ${startdir}/lirc.install + install -d "${pkgdir}/etc/lirc" + + # remove built modules + rm -r "${pkgdir}/lib/" } |