1 # Contributor: dkessler@operamail.com
5 pkgdesc="A tool for hotswapping IBM ThinkPad UltraBay devices."
6 url="http://www.sourceforge.net/projects/lths"
8 depends=('glibc' 'acpid')
13 install="lt_hotswap.install"
14 source=(http://easynews.dl.sourceforge.net/sourceforge/lths/$pkgname-$pkgver.tar.gz)
15 md5sums=('19b787a1d7139f701abdbc86da7848cc')
18 cd $startdir/src/$pkgname-$pkgver
20 mkdir -p $startdir/pkg/lib/modules/2.6.15-ARCH/kernel/drivers/acpi
21 mkdir -p $startdir/pkg/etc/acpi/events
22 cp $startdir/src/$pkgname-$pkgver/lt_hotswap.ko $startdir/pkg/lib/modules/2.6.15-ARCH/kernel/drivers/acpi
23 cp $startdir/src/$pkgname-$pkgver/config/lths $startdir/pkg/etc/acpi/events
24 sed -i 's/usr\/local\/sbin/etc\/acpi/' $startdir/pkg/etc/acpi/events/lths
25 cp $startdir/src/$pkgname-$pkgver/config/lths.sh $startdir/pkg/etc/acpi