updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / acpi-support / PKGBUILD
blob25115fe20723024e5d6152287335cced06b59f78
1 pkgname=acpi-support
2 pkgver=0.138
3 pkgrel=3
4 pkgdesc="Ubuntu ACPI support package"  
5 depends=('acpid' 'netkit-bsd-finger' 'dmidecode')
6 makedepends=('make')
7 provides=('acpi-support' 'acpi_fakekey')
8 conflicts=('acpi_fakekey')
9 url="http://packages.ubuntu.com/acpi-support"
11 [ "$CARCH" = i686   ] && source=(http://nl.archive.ubuntu.com/ubuntu/pool/main/a/$pkgname/$pkgname"_"$pkgver"_"i386.deb acpi-support)
12 [ "$CARCH" = x86_64 ] && source=(http://nl.archive.ubuntu.com/ubuntu/pool/main/a/$pkgname/$pkgname"_"$pkgver"_"amd64.deb acpi-support)
13 [ "$CARCH" = i686   ] && md5sums=('dac52504a2afd8a90fbbe954fcc2372f' '6e58ece63e8298dc58cac05be0de2a0e')
14 [ "$CARCH" = x86_64 ] && md5sums=('3917003ffe349f6d1e7ee5d6ebe2296b' '6e58ece63e8298dc58cac05be0de2a0e')
16 arch=('i686' 'x86_64')
17 license="GPL"
18 install=($pkgname.install)
20 build() {
21   local ROOT=../pkg
23   [ "$CARCH" = i686   ] && ar x $pkgname"_"$pkgver"_"i386.deb
24   [ "$CARCH" = x86_64 ] && ar x $pkgname"_"$pkgver"_"amd64.deb
26   tar xf data.tar.gz -C $ROOT
27   rm -r $ROOT/etc/init.d
28   mkdir -p $ROOT/etc/rc.d
29   cp acpi-support $ROOT/etc/rc.d
30   chmod +x $ROOT/etc/rc.d/acpi-support