summaryrefslogtreecommitdiff
path: root/community/iasl/PKGBUILD
blob: d33d2efa43cdd6bd335cd695f1e95304f673ccfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# $Id: PKGBUILD 72890 2012-06-24 13:48:22Z lcarlier $
# Maintainer : Laurent Carlier <lordheavym@gmail.com>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Alessio 'mOlOk' Bolognino <themolok@gmail.com>

pkgname=iasl
pkgver=20120620
pkgrel=1
pkgdesc="Intel ACPI Source Language compiler"
arch=('i686' 'x86_64')
url="http://acpica.org"
license=('custom')
depends=('glibc')
makedepends=('flex' 'bison')
options=('!makeflags')
install=iasl.install
source=(http://acpica.org/download/acpica-unix-${pkgver}.tar.gz
	LICENSE)
md5sums=('7061691ed7c828bc640aaf4274bbca78'
         '8615526144f69ea4e870d9bc37df9b29')

build() {
  cd "${srcdir}/acpica-unix-${pkgver}"/source

  # fix building with gcc-4.6
  sed -i -e 's/-Werror//g' compiler/Makefile tools/acpisrc/Makefile

  cd compiler
  make

  cd ../tools/acpisrc
  make


  #cd ../acpiexec
  #make
  #install -m755 acpiexec "${pkgdir}/usr/bin"

  cd ../acpixtract
  make
}

package() {
  cd "${srcdir}/acpica-unix-${pkgver}"/source

  install -D -m755 compiler/iasl "${pkgdir}/usr/bin/iasl"
  install -m755 tools/acpisrc/acpisrc "${pkgdir}/usr/bin"
  install -m755 tools/acpixtract/acpixtract "${pkgdir}/usr/bin"
  install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}