summaryrefslogtreecommitdiff
path: root/user/opal-utils/APKBUILD
blob: f65d278caf225f071f0324124eff29c0688df715 (plain) (blame)
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
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=opal-utils
pkgver=6.5
pkgrel=0
pkgdesc="Tools for IBM FSP and OpenPOWER systems"
url="https://lists.ozlabs.org/listinfo/skiboot"
arch="ppc64"
license="Apache-2.0"
depends=""
makedepends=""
subpackages="$pkgname-doc"
source="skiboot-$pkgver.tar.gz::https://github.com/open-power/skiboot/archive/v$pkgver.tar.gz
	musl.patch
	opal-prd.patch
	"
builddir="$srcdir/skiboot-$pkgver"

_tools="opal-prd gard"

build() {
	for _tool in $_tools; do
		cd "$builddir"/external/$_tool
		make
	done
}

check() {
	for _tool in $_tools; do
		cd "$builddir"/external/$_tool
		make test
	done
}

package() {
	for _tool in $_tools; do
		cd "$builddir"/external/$_tool
		make DESTDIR="$pkgdir" prefix="/usr" install
	done
}

sha512sums="f756307403ec49f24e5dbc06dbe8fe52898da27f2a0fa761164b1d85efd33dae8a8f96de3859eb7b11f85f43a790c9c213f9ebf0c7f4a859b590dcfb35e38571  skiboot-6.5.tar.gz
e7480f16b6eb41fd65b40ea1f20031118030f24681b7b8afcfdebb8cde7625e45902683cfb5fe0af3259060fb1b92b9c2f5d62354de356e7706a7f08ad9f772e  musl.patch
692206f60727041c070c7f75eb66325607d00261e8dd7f47111fd59c7495c744ac356b0c94c6139c76bacbe403f1e9e6819f8bce2d13ac10d1cacc6e351cc25e  opal-prd.patch"