Date: Saturday, April 29, 2023 @ 07:07:43
Author: felixonmars
Revision: 1449249
archrelease: copy trunk to community-staging-x86_64
Added:
dtc/repos/community-staging-x86_64/
dtc/repos/community-staging-x86_64/PKGBUILD
(from rev 1449248, dtc/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: dtc/repos/community-staging-x86_64/PKGBUILD (from rev 1449248,
dtc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-04-29 07:07:43 UTC (rev 1449249)
@@ -0,0 +1,37 @@
+# Maintainer: Anatol Pomozov
+# Contributor: Frederic Bezies <fredbezies at gmail dot com>
+
+pkgname=dtc
+pkgver=1.7.0
+pkgrel=2
+pkgdesc='Device Tree Compiler'
+url='https://www.devicetree.org/'
+arch=(x86_64)
+license=(GPL2)
+depends=(libyaml)
+makedepends=(swig)
+checkdepends=(valgrind)
+source=(https://www.kernel.org/pub/software/utils/dtc/dtc-$pkgver.tar.xz)
+sha256sums=('29edce3d302a15563d8663198bbc398c5a0554765c83830d0d4c0409d21a16c4')
+
+prepare() {
+ cd dtc-$pkgver
+ sed -i 's/-Werror//' Makefile
+}
+
+build() {
+ cd dtc-$pkgver
+ # python build fails as it requires a lot of extra dependencies.
+ # someone with more python experience needs to look at the proper way to
build the python extension.
+ NO_PYTHON=1 make
+}
+
+check() {
+ cd dtc-$pkgver
+ NO_PYTHON=1 make check
+}
+
+package() {
+ cd dtc-$pkgver
+ NO_PYTHON=1 DESTDIR="$pkgdir" make SETUP_PREFIX="$pkgdir/usr"
PREFIX="$pkgdir/usr" install
+}