From 36a2e78c2c7b39277e21cea0f13994aaed2bfda7 Mon Sep 17 00:00:00 2001 From: HenriDellal Date: Mon, 9 Mar 2020 15:44:45 +0300 Subject: [PATCH] main/dtbtool-sprd: new aport (!1041) dtbtool-sprd is a version of dtbtool which is meant for Spreadtrum devices. Spreadtrum uses different header magic. --- main/dtbtool-sprd/APKBUILD | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 main/dtbtool-sprd/APKBUILD diff --git a/main/dtbtool-sprd/APKBUILD b/main/dtbtool-sprd/APKBUILD new file mode 100644 index 000000000..81cb0e27a --- /dev/null +++ b/main/dtbtool-sprd/APKBUILD @@ -0,0 +1,24 @@ +# Contributor: Anri Dellal +# Maintainer: Anri Dellal +pkgname=dtbtool-sprd +pkgver=1.0.0 +pkgrel=0 +_commit="f0e4a4c5025b8f7a13e69db3af9446717702f4f2" +pkgdesc="Tool for compiling a dtb.img for Spreadtrum SoC" +url="https://github.com/yonglongliu/vendor/" +arch="all" +license="MIT" +makedepends="dtc-dev" +options="!check" # There is no testsuite +source="$pkgname-$_commit-dtbtool.c::https://raw.githubusercontent.com/yonglongliu/vendor/$_commit/sprd/external/tools-build/dtbtool/dtbtool.c" + +build() { + gcc $pkgname-$_commit-dtbtool.c -o dtbTool-sprd.o -c + gcc dtbTool-sprd.o -o dtbTool-sprd +} + +package() { + install -Dm755 "$srcdir"/dtbTool-sprd \ + "$pkgdir"/usr/bin/dtbTool-sprd +} +sha512sums="2b79cbdaffb73dc99b673375f386218858f7a638433af1cf4da9310fea90485e42054b87bf1a4aa23e134595f1cf956f9bade07bc73076a8553e1363c3002b39 dtbtool-sprd-f0e4a4c5025b8f7a13e69db3af9446717702f4f2-dtbtool.c"