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