2020-03-09 12:44:45 +00:00
|
|
|
# Maintainer: Anri Dellal <anridellal@gmail.com>
|
|
|
|
pkgname=dtbtool-sprd
|
2021-01-08 21:23:29 +00:00
|
|
|
pkgver=1.1.2
|
2024-06-23 15:55:33 +00:00
|
|
|
pkgrel=1
|
2020-03-09 12:44:45 +00:00
|
|
|
pkgdesc="Tool for compiling a dtb.img for Spreadtrum SoC"
|
2021-01-08 21:23:29 +00:00
|
|
|
url="https://gitlab.com/Grimler/dtbtool-sprd"
|
2020-03-09 12:44:45 +00:00
|
|
|
arch="all"
|
|
|
|
license="MIT"
|
2024-06-23 15:55:33 +00:00
|
|
|
depends="dtc"
|
2020-03-09 12:44:45 +00:00
|
|
|
makedepends="dtc-dev"
|
|
|
|
options="!check" # There is no testsuite
|
2021-01-08 21:23:29 +00:00
|
|
|
source="
|
|
|
|
https://gitlab.com/Grimler/dtbtool-sprd/-/archive/v$pkgver/dtbtool-sprd-v$pkgver.tar.gz
|
|
|
|
"
|
|
|
|
builddir="dtbtool-sprd-v$pkgver"
|
2020-03-09 12:44:45 +00:00
|
|
|
|
|
|
|
build() {
|
2021-01-08 21:23:29 +00:00
|
|
|
gcc dtbtool.c -o dtbTool-sprd.o -c
|
2020-03-09 12:44:45 +00:00
|
|
|
gcc dtbTool-sprd.o -o dtbTool-sprd
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2021-01-08 21:23:29 +00:00
|
|
|
install -Dm755 "$srcdir"/dtbtool-sprd-v$pkgver/dtbTool-sprd \
|
2020-03-09 12:44:45 +00:00
|
|
|
"$pkgdir"/usr/bin/dtbTool-sprd
|
|
|
|
}
|
2021-01-08 21:23:29 +00:00
|
|
|
sha512sums="3fe3398bf89a12f47b2dc409912dfac88413467e09af66244dcf359a30a220f5c44413458566f7d762bc4cfcbf1d3404dd74160617df8ef020fa383e53017c82 dtbtool-sprd-v1.1.2.tar.gz"
|