#Maintainer: Frederic Boulet bipbiponlinux~AT~gmail.com pkgname=lirc pkgver=0.8.6 zenver=64 pkgrel=1 arch=i486 source=("http://prdownloads.sourceforge.net/lirc/lirc-$pkgver.tar.bz2" \ "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/l/$pkgname/kernel-2.6.32.patch" "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/l/$pkgname/rc.lirc") sourcetemplate=http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/l/$pkgname docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers") url=http://www.lirc.org options=('norequiredbuilder' 'keepdepfile') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "lirc (The Linux Infrared Remote Control package.)" "LIRC is a package that allows you to decode and send infra-red signals" "of many (but not all) commonly used remote controls." "Former versions focussed on home-brew hardware connected to the serial" "or parallel port. Descriptions how to build this hardware can be found" "here. Current versions of LIRC also support a variety of other" "hardware. An up-to-date list of all supported devices and the status" "of the according drivers is available on the left." ) build() { cd $startdir/src/$pkgname-$pkgver patch -p1 < ../kernel-2.6.32.patch ./configure --enable-sandboxed --prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-driver=all \ --with-transmitter --with-devdir=/var/run/lirc --with-kerneldir=/usr/src/linux --disable-static # 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 \ || return 1 # disable lirc_gpio due to brokeness of kernel 2.6.23 sed -i -e "s:lirc_gpio::" \ Makefile drivers/Makefile drivers/*/Makefile tools/Makefile \ || return 1 make || return 1 make install DESTDIR=$startdir/pkg mkdir -p $startdir/pkg/usr/share/lirc/remotes mv -v remotes $startdir/pkg/usr/share/lirc/ chown -R root:root $startdir/pkg/usr/share/lirc/remotes install -D -m 0644 contrib/lircd.conf $startdir/pkg/etc/lircd.conf install -D -m 0644 contrib/lircmd.conf $startdir/pkg/etc/lircmd.conf install -D -m 0644 contrib/lircrc $startdir/pkg/etc/lircrc install -D -m 0644 contrib/lirc.rules $startdir/pkg/etc/udev/rules.d/96-lirc.rules install -D -m 0644 ../rc.lirc $startdir/pkg/etc/rc.d/rc.lirc }