summaryrefslogtreecommitdiffstats
path: root/main/acpica/APKBUILD
blob: 05c9d89fa422946889eee80636ec42d39d1190b0 (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
54
55
56
57
# Contributor: Roger Pau Monne <roger.pau@entel.upc.edu>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=acpica
pkgver=20140325
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="https://acpica.org/sites/acpica/files/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="08c2ee7ba766c76c9be379d121878cd8  acpica-unix-20140325.tar.gz
7af813a48b9d1ce988aa72655f0fa61f  COPYING"
sha256sums="06b706f3c4f4add62100baffac721a9f63f322656d606efb2e73e138f904c0d4  acpica-unix-20140325.tar.gz
7d265c08321b2cc95e3facf1089b28563a8c2b9a6730a380fc456da988c7c9a6  COPYING"
sha512sums="853132029022e2e55535e0cae24f4257ce56e7d220288cf798393e5bcc5ee349fe07ed3e4b2ee2bdd1cb18231d5d4ef57486a0038641a8f3917745a592230140  acpica-unix-20140325.tar.gz
7999047808e26bd83696cf11641a2ba99a986d89ac861cc95d79a9849d1ae1aef7eb107b1c472f1e886cf6556a78554ed6cc7af269b1e2671f3445d1a7ced268  COPYING"