updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lt_hotswap / PKGBUILD
blob675b23df97068a6178d8d6304584e9a89b29550c
1 # Contributor: dkessler@operamail.com
2 pkgname=lt_hotswap
3 pkgver=0.2.0
4 pkgrel=1
5 pkgdesc="A tool for hotswapping IBM ThinkPad UltraBay devices."
6 url="http://www.sourceforge.net/projects/lths"
7 license=""
8 depends=('glibc' 'acpid')
9 makedepends=()
10 conflicts=()
11 replaces=()
12 backup=()
13 install="lt_hotswap.install"
14 source=(http://easynews.dl.sourceforge.net/sourceforge/lths/$pkgname-$pkgver.tar.gz)
15 md5sums=('19b787a1d7139f701abdbc86da7848cc')
17 build() {
18   cd $startdir/src/$pkgname-$pkgver
19   make || return 1
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