summaryrefslogtreecommitdiff
path: root/community/iasl
diff options
context:
space:
mode:
Diffstat (limited to 'community/iasl')
-rw-r--r--community/iasl/PKGBUILD36
1 files changed, 13 insertions, 23 deletions
diff --git a/community/iasl/PKGBUILD b/community/iasl/PKGBUILD
index d33d2efa4..0f19f15bb 100644
--- a/community/iasl/PKGBUILD
+++ b/community/iasl/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 72890 2012-06-24 13:48:22Z lcarlier $
+# $Id: PKGBUILD 75633 2012-08-27 20:02:12Z lcarlier $
# Maintainer : Laurent Carlier <lordheavym@gmail.com>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Alessio 'mOlOk' Bolognino <themolok@gmail.com>
pkgname=iasl
-pkgver=20120620
+pkgver=20120816
pkgrel=1
pkgdesc="Intel ACPI Source Language compiler"
arch=('i686' 'x86_64')
@@ -16,35 +16,25 @@ options=('!makeflags')
install=iasl.install
source=(http://acpica.org/download/acpica-unix-${pkgver}.tar.gz
LICENSE)
-md5sums=('7061691ed7c828bc640aaf4274bbca78'
+md5sums=('eae80f528320717357b3cb5368ba580b'
'8615526144f69ea4e870d9bc37df9b29')
build() {
- cd "${srcdir}/acpica-unix-${pkgver}"/source
+ cd "${srcdir}/acpica-unix-${pkgver}"/generate/unix
- # fix building with gcc-4.6
- sed -i -e 's/-Werror//g' compiler/Makefile tools/acpisrc/Makefile
+ sed -i -e 's/_CYGWIN/_LINUX/g' -e 's/-Werror//g' Makefile.config
- cd compiler
- make
-
- cd ../tools/acpisrc
- make
-
-
- #cd ../acpiexec
- #make
- #install -m755 acpiexec "${pkgdir}/usr/bin"
-
- cd ../acpixtract
- make
+ if [[ $CARCH == i686 ]]; then
+ make BITS=32
+ else
+ make BITS=64
+ fi
}
package() {
- cd "${srcdir}/acpica-unix-${pkgver}"/source
+ cd "${srcdir}/acpica-unix-${pkgver}"/generate/unix
+
+ make DESTDIR=${pkgdir} install
- 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"
}