updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / acpica / PKGBUILD
blobfee7049b5b70b2f99565139d7aef3f3accb4c510
1 #Maintainer: Nathan O <ndowens04 at gmail dot com>
2 pkgname=acpica
3 pkgver=20110922
4 pkgrel=1
5 pkgdesc="Provides an operating system (OS)-independent reference implementation of the ACPI"
6 url="http://www.acpica.org"
7 arch=('i686' 'x86_64')
8 depends=('glibc')
9 makedepends=('bison' 'gcc')
10 license=("custom:intel")
11 source=("http://www.acpica.org/download/${pkgname}-unix-${pkgver}.tar.gz"
12                 "LICENSE"
13                 "compiler-Makefile.patch"
14                 "acpiexec-Makefile.patch"
15                 "acpixtract-Makefile.patch"
16                 "acpihelp-Makefile.patch"
17                 "acpinames-Makefile.patch"
18                 "acpibin-Makefile.patch")
20 build() {
21         ## iASL
22         cd ${srcdir}/acpica-unix-${pkgver}/compiler
23         patch -Np0 -i "${srcdir}/compiler-Makefile.patch"
24         make clean
25         make -j1
26         
27         ## AcpiExec
28         cd ${srcdir}/acpica-unix-${pkgver}/tools/acpiexec
29         patch -Np0 -i "${srcdir}/acpiexec-Makefile.patch"
30         make clean
31         make -j1
32         
33         ## AcpiXtract
34         cd  ${srcdir}/acpica-unix-${pkgver}/tools/acpixtract
35         patch -Np0 -i "${srcdir}/acpixtract-Makefile.patch"
36         make clean
37         make -j1
38         
39         ## AcpiNames
40         cd  ${srcdir}/acpica-unix-${pkgver}/tools/acpinames
41         patch -Np0 -i "${srcdir}/acpinames-Makefile.patch"
42         make clean
43         make -j1
44         
45         ## AcpiBin
46         cd  ${srcdir}/acpica-unix-${pkgver}/tools/acpibin
47         patch -Np0 -i "${srcdir}/acpibin-Makefile.patch"
48         make clean
49         make -j1
50         
51         ## AcpiHelp
52         cd  ${srcdir}/acpica-unix-${pkgver}/tools/acpihelp
53         patch -Np0 -i "${srcdir}/acpihelp-Makefile.patch"
54         make clean
55         make -j1
58 package() {
59         install -d ${pkgdir}/usr/{bin,share/licenses/${pkgname}}
61         ## iASL
62         cd ${srcdir}/acpica-unix-${pkgver}/compiler
63         install -Dm755 iasl ${pkgdir}/usr/bin/iasl
65         ## AcpiExec
66         cd ${srcdir}/acpica-unix-${pkgver}/tools/acpiexec
67         install -Dm755 acpiexec $pkgdir/usr/bin/acpiexec
69         ## AcpiXtract
70         cd  ${srcdir}/acpica-unix-${pkgver}/tools/acpixtract
71         install -Dm755 acpixtract ${pkgdir}/usr/bin/acpixtract  
72         
73         ## AcpiNames
74         cd  ${srcdir}/acpica-unix-${pkgver}/tools/acpinames
75         install -Dm755 acpinames ${pkgver}/usr/bin/acpinames
76         
77         ## AcpiBin
78         cd  ${srcdir}/acpica-unix-${pkgver}/tools/acpibin
79         install -Dm755 acpibin ${pkgdir}/usr/bin/acpibin
80         
81         ## AcpiHelp
82         cd  ${srcdir}/acpica-unix-${pkgver}/tools/acpihelp
83         install -Dm755 acpihelp ${pkgdir}/usr/bin/acpihelp
85         ## License
86         install -Dm644 ${srcdir}/LICENSE \
87           ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
90 md5sums=('b95af67bb277657ae01844db01f2f9c7'
91          '2c0478c2c880b4b323fe1d081f6d8951'
92          '9fd9f1c9ad8b9345dc5e8ca5284fa20e'
93          '75c9a7c20c29bf7d2ad610e99891d560'
94          'f8c34395df440f13a627ebae3b232f09'
95          '644d0dd630c8eed0ef3296fedb55c222'
96          '6b3ee9f5fab9b41ceea7982b5c7edce0'
97          '55640457912d8771e0e1bf8784ef2fd7')