updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / acpi-support-debian / PKGBUILD
blob4d57ed812841d3d5068e6cc4d5a4b590e5f07492
1 pkgname=acpi-support-debian
2 pkgver=0.109
3 pkgrel=2
4 debrel=11
5 debname=${pkgname/-debian/}
6 pkgdesc="Debian's original ACPI Support Package (Ubuntu removed support for severl laptops in favor of their kernel)"  
7 depends=('acpid')
8 makedepends=('make')
9 provides=('acpi-support' 'acpi_fakekey')
10 conflicts=('acpi_fakekey' 'acpi-support')
11 url="http://packages.debian.org/acpi-support"
12 deblocation='http://mirror.isoc.org.il/pub/debian/pool/main/a'
13 source=("$deblocation/$debname/$debname-base_$pkgver-${debrel}_all.deb" acpi-support)
14 md5sums=('22b1b206b7ae9357b3f66f662d061e57' '6e58ece63e8298dc58cac05be0de2a0e')
16 if [ "$CARCH" = "i686" ]; then
17         source[2]="$deblocation/$debname/${debname}_$pkgver-${debrel}_i386.deb"
18         md5sums[2]='b143df9f66a82dcc3b5dd4c703402cd0'
21 if [ "$CARCH" = "x86_64" ]; then
22         source[2]="$deblocation/$debname/${debname}_$pkgver-${debrel}_amd64.deb"
23         md5sums[2]='cc82c4d194aef6028b0eade9ef87d1bd'
26 arch=('i686' 'x86_64')
27 license="GPL"
28 install=($pkgname.install)
30 build() {
31         local ROOT=../pkg
32         ar x `basename ${source[2]}`
33         tar xf data.tar.gz -C $ROOT
34         ar x `basename ${source[0]}`
35         tar xf data.tar.gz -C $ROOT
36         rm -r $ROOT/etc/init.d
37         mkdir -p $ROOT/etc/rc.d
38         cp acpi-support $ROOT/etc/rc.d