summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d87223cf3ec6e58ee8fe7f41af0caf0eb93596b2 (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
# Maintainer: robertfoster

pkgname=extract-dtb
pkgver=1.2.1
pkgrel=1
pkgdesc="Tool to split a kernel image with appended dtbs into separated kernel and dtb files"
arch=('any')
url="https://github.com/PabloCastellano/extract-dtb"
license=('GPL3')
depends=('python')
makedepends=('python-setuptools')

source=("${url}/archive/refs/tags/$pkgver.tar.gz")

build() {
  cd "${pkgname}-${pkgver}"
  python setup.py build
}

package() {
  cd "${pkgname}-${pkgver}"
  python setup.py install --root="${pkgdir}" --optimize=1
  rm ${pkgdir}/usr/{CHANGES.md,LICENSE}
}

sha256sums=('277689145b2ce11debf620ffc35206bd1f96b467adaca4cd113fd13f5027d79e')