aboutsummaryrefslogtreecommitdiffstats
path: root/main/acpica/APKBUILD
blob: 9bd218b66209d89e9e3b8b67ec3e454231fcce39 (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
51
52
53
# Contributor: Roger Pau Monne <roger.pau@entel.upc.edu>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=acpica
pkgver=20120816
pkgrel=0
pkgdesc="ACPI Component Architecture utilities"
url="http://www.acpica.org/"
arch="x86 x86_64"
license="custom"
depends=""
depends_dev="flex bison"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc iasl"
# license was found here:
# http://acpica.org/downloads/unix_source_code.php
source="http://www.acpica.org/download/acpica-unix-$pkgver.tar.gz
	COPYING"

_builddir="$srcdir"/acpica-unix-$pkgver

build() {
	cd "$_builddir"

	# support gcc-4.6
	sed -i -e 's/-Werror//g' \
		-e 's/remove-destination//' \
		generate/unix/Makefile \
		generate/unix/Makefile.config \
		|| return 1
	
	case $CARCH in
		x86_64) _bits=64;;
		x86) _bits=32;;
	esac
	make BITSFLAG=-m$_bits || return 1
}

package() {
	cd "$_builddir"
	make install DESTDIR="$pkgdir"
	install -Dm644 "$srcdir"/COPYING "$pkgdir"/usr/share/licenses/acpica/COPYING
}

iasl() {
	pkgdesc="ACPI ASL compiler"
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/iasl "$subpkgdir"/usr/bin/
}


md5sums="eae80f528320717357b3cb5368ba580b  acpica-unix-20120816.tar.gz
7af813a48b9d1ce988aa72655f0fa61f  COPYING"