aboutsummaryrefslogtreecommitdiffstats
path: root/main/acpica/APKBUILD
blob: cc19d9731795d374cc597365e189515ebd0d013a (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
# Contributor: Roger Pau Monne <roger.pau@entel.upc.edu>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=acpica
pkgver=20170303
pkgrel=0
pkgdesc="ACPI Component Architecture utilities"
url="http://www.acpica.org/"
arch="all"
license="custom"
depends=""
makedepends="flex bison"
install=""
subpackages="$pkgname-doc iasl"
options="!check"
# license was found here:
# http://acpica.org/downloads/unix_source_code.php
source="https://acpica.org/sites/acpica/files/acpica-unix-$pkgver.tar.gz
	disable-werror.patch
	COPYING
	"

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

build() {
	cd "$builddir"
	make || return 1
}

package() {
	cd "$builddir"
	make install DESTDIR="$pkgdir"
	install -Dm644 "$srcdir"/COPYING \
		"$pkgdir"/usr/share/licenses/acpica/COPYING || return 1
}

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


sha512sums="efe4e59b10e297f65828f2f397082920d4f171c8847057514b2c3982e4fac111a55a932de41f01d4b54bc7ea1022d3feb682b8fc2c51878410898ea1b5f7602b  acpica-unix-20170303.tar.gz
1f5049568d612d4debf3690e0d918d8d56abbed14ade7b2e6282eba17b25934b695d1a9fe10f99469efe8d4382c4546481d0579afdf5cdb9695fcdc93559fbab  disable-werror.patch
7999047808e26bd83696cf11641a2ba99a986d89ac861cc95d79a9849d1ae1aef7eb107b1c472f1e886cf6556a78554ed6cc7af269b1e2671f3445d1a7ced268  COPYING"