main/dtbtool-sprd: new aport (!1041)
dtbtool-sprd is a version of dtbtool which is meant for Spreadtrum devices. Spreadtrum uses different header magic.
This commit is contained in:
parent
48b6e76b5e
commit
36a2e78c2c
1 changed files with 24 additions and 0 deletions
24
main/dtbtool-sprd/APKBUILD
Normal file
24
main/dtbtool-sprd/APKBUILD
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Contributor: Anri Dellal <anridellal@gmail.com>
|
||||
# Maintainer: Anri Dellal <anridellal@gmail.com>
|
||||
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"
|
Loading…
Reference in a new issue