aboutsummaryrefslogtreecommitdiffstats
path: root/main/dtc/APKBUILD
blob: a6478a39465a9f5843f9057ff85b6dfd9aac1424 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dtc
pkgver=1.4.7
pkgrel=0
pkgdesc="Device Tree Compiler"
url="http://devicetree.org/Device_Tree_Compiler"
arch="all"
license="GPL-2.0-or-later"
depends=""
depends_dev=""
makedepends="$depends_dev bison flex"
install=""
subpackages="$pkgname-dev libfdt"
source="https://kernel.org/pub/software/utils/dtc/dtc-$pkgver.tar.xz
	use-tx-as-the-type-specifier-instead-of-zx.patch
	"
builddir="$srcdir/dtc-$pkgver"

prepare() {
	default_prepare
	sed -i s:-Werror::g "$builddir"/Makefile
}

build() {
	cd "$builddir"
	make
}

package() {
	cd "$builddir"
	make -j1 DESTDIR="$pkgdir" PREFIX=/usr install
}

libfdt() {
	pkgdesc="Device tree library"
	mkdir -p "$subpkgdir"/usr/lib/
	mv "$pkgdir"/usr/lib/libfdt* "$subpkgdir"/usr/lib/
}

sha512sums="01e0c88aee154d8ce8a5b84a299c98d12df9698e5eff572409e5e912236028532309fd21ca6a146dffef859c665d476bbbe13c371c621c1dee4abe546e5e6ebf  dtc-1.4.7.tar.xz
6b03522fed030a6b2411bd12d1878667fec9ae9bcbfe60f7d5f82468bcbc2eab5956ae758086b8f2d5611e7a6584525ab33702df6f721b218ddb3205968da543  use-tx-as-the-type-specifier-instead-of-zx.patch"