summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorM0Rf302021-04-26 12:18:21 +0200
committerM0Rf302021-04-26 12:18:21 +0200
commitb8e45a9ff30b26b9939182026a746ef382c76baa (patch)
tree0e37b2adeef666b8da572a5df919536f511aba5d
downloadaur-b8e45a9ff30b26b9939182026a746ef382c76baa.tar.gz
extract-dtb: first commit
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD26
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0232374efc7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = extract-dtb
+ pkgdesc = Tool to split a kernel image with appended dtbs into separated kernel and dtb files
+ pkgver = 1.2.1
+ pkgrel = 1
+ url = https://github.com/PabloCastellano/extract-dtb
+ arch = any
+ license = GPL3
+ makedepends = python-setuptools
+ depends = python
+ source = https://github.com/PabloCastellano/extract-dtb/archive/refs/tags/1.2.1.tar.gz
+ sha256sums = 277689145b2ce11debf620ffc35206bd1f96b467adaca4cd113fd13f5027d79e
+
+pkgname = extract-dtb
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d87223cf3ec
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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')