aboutsummaryrefslogtreecommitdiffstats
path: root/main/dtc/APKBUILD
blob: 43916cfbdd350feb5c45a036842da0e4f3111fd0 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dtc
pkgver=1.4.1
pkgrel=0
pkgdesc="Device Tree Compiler"
url="http://devicetree.org/Device_Tree_Compiler"
arch="all"
license="GPLv2+"
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"

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

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" PREFIX=/usr install || return 1
}

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

md5sums="2c977ced2e900a397b2db846ae68ef89  dtc-1.4.1.tar.xz
d7178913059955f54298f3168930cbe0  use-tx-as-the-type-specifier-instead-of-zx.patch"
sha256sums="77992ad8eac7b68f553d0ba58e5b51604ac803d126196c99e3ae38aaae28bb94  dtc-1.4.1.tar.xz
902efc2f23ba67e33db44dd1c73dec9740320ad289ed73b83d5f3bcceab88b41  use-tx-as-the-type-specifier-instead-of-zx.patch"
sha512sums="63df730e65f62b8c9648cfee5461809188f4198cbf98de25fbe5cb7f2f43c405266abb740501740f59847dc6faf0588bcbc734d08ae5430b05c2601e070d6d05  dtc-1.4.1.tar.xz
693639b1eaa63d5eca598f1e35890fdc13132baf1a95ab780d5039faf79ff9bb72638096d794d73f4d2a93c69c5bba0d657985de98f97c3eff633969f5e6f8f8  use-tx-as-the-type-specifier-instead-of-zx.patch"