wok-next view pcmciautils/receipt @ rev 17155

tup: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Sep 14 09:47:19 2014 +0200 (2014-09-14)
parents b9ca0849598b
children c9e270dd464f
line source
1 # SliTaz package receipt.
3 PACKAGE="pcmciautils"
4 VERSION="018"
5 CATEGORY="system-tools"
6 SHORT_DESC="Utils to use with PCMCIA cards"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html"
11 #WGET_URL="http://www.kernel.org/pub/linux/utils/kernel/pcmcia/$TARBALL"
12 WGET_URL="http://sourceware.mirrors.tds.net/pub/kernel.org/linux/utils/kernel/pcmcia/$TARBALL"
14 DEPENDS="linux sysfsutils udev"
15 BUILD_DEPENDS="sysfsutils-dev bison flex"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 # We need lex...
21 cd $src
22 make
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/sbin $fs/etc/udev/rules.d $fs/etc/pcmcia
29 cp -a $src/pccardctl $fs/sbin
30 cp -a $src/pcmcia-check-broken-cis $fs/sbin
31 cp -a $src/pcmcia-socket-startup $fs/sbin
32 # Udev rules and config.
33 cp -a $src/udev/60-pcmcia.rules $fs/etc/udev/rules.d
34 cp -a $src/config/config.opts $fs/etc/pcmcia
35 # Fix path
36 sed -i s#/lib/udev/pcmcia-check-broken-cis#/sbin/pcmcia-check-broken-cis# \
37 $fs/etc/udev/rules.d/60-pcmcia.rules
38 sed -i s#/lib/udev/pcmcia-socket-startup#/sbin/pcmcia-socket-startup# \
39 $fs/etc/udev/rules.d/60-pcmcia.rules
40 }
42 post_install()
43 {
44 tazpkg reconfigure udev --root=$1
45 }