wok-next view lirc/receipt @ rev 20206
Up PyQt-x11-gpl (4.12.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 04 09:19:58 2017 +0100 (2017-11-04) |
parents | 805dd99c3fee |
children | d43bf7aae921 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="lirc"
4 VERSION="0.9.4d"
5 CATEGORY="utilities"
6 SHORT_DESC="Enables decoding and sending signals of many commonly used remote controls."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.lirc.org/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 BUILD_DEPENDS="linux linux-module-headers python libusb-dev libirman-dev \
14 portaudio-dev alsa-lib-dev libusb-compat-dev util-linux-uuid-dev \
15 libftdi-dev jack-dev libxslt py3k udev-dev"
16 SPLIT="lirc lirc-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
22 sed -i "s/uname -r/echo $KERNEL_VERSION-slitaz/g" configure
24 ./configure \
25 --prefix=/usr \
26 --sysconfdir=/etc \
27 --localstatedir=/var \
28 --with-x \
29 --with-driver=all \
30 --with-kerneldir=/usr/src/linux \
31 --with-moduledir=/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc \
32 $CONFIGURE_ARGS &&
33 make 2>&1 | sed 's/ERROR/Error/;/lirc_dev\/Module/d' &&
34 make DESTDIR=$DESTDIR install 2>&1 | sed '/depmod:/d'
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 case $PACKAGE in
41 lirc)
42 DEPENDS="glibc-base libusb libusb-compat libftdi xorg-libXau \
43 libirman portaudio alsa-lib util-linux-uuid"
44 mkdir -p $fs/usr/lib $fs/usr/share
45 cp -a $install/usr/share/lirc $fs/usr/share
46 cp -a $install/usr/lib/*.so* $fs/usr/lib
47 cp -a $install/usr/bin $fs/usr
48 cp -a $install/usr/sbin $fs/usr
50 cp -a $install/etc $fs
51 cp -a $install/var $fs
52 ;;
53 lirc-dev)
54 CAT="development|lirc devel files."
55 DEPENDS="pkg-config lirc"
56 mkdir -p $fs/usr/lib
57 cp -a $install/usr/lib/*.*a $fs/usr/lib
58 cp -a $install/usr/include $fs/usr
59 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
60 ;;
61 esac
62 }