contrib/pcmciautils/Pkgfile

21 lines
814 B
Plaintext
Raw Normal View History

2006-10-28 22:32:26 +02:00
# Description: An initialization tools necessary to allow the PCMCIA subsystem to behave (almost) as every other hotpluggable bus system
# URL: http://www.kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html
2006-10-29 12:57:46 +01:00
# Maintainer: Mikhail Kolesnik, mike at openbunker dot org
2006-10-28 22:32:26 +02:00
# Depends on: sysfsutils
name=pcmciautils
version=014
release=2
source=(http://www.kernel.org/pub/linux/utils/kernel/pcmcia/$name-$version.tar.bz2 \
$name-$version-makefile.patch)
build() {
cd $name-$version
patch -p1 -i $SRC/$name-$version-makefile.patch
make
make DESTDIR=$PKG install
sed -i s/"MODALIAS\=\="/"ENV\{MODALIAS\}\=\="/g $PKG/etc/udev/rules.d/60-pcmcia.rules
sed -i s/"\$modalias"/"\$env\{MODALIAS\}"/g $PKG/etc/udev/rules.d/60-pcmcia.rules
mv $PKG/etc/udev/rules.d/60-pcmcia.rules $PKG/etc/udev/rules.d/65-pcmcia.rules
}