[arch-commits] Commit in dtc/trunk (PKGBUILD)

Anatol Pomozov anatolik at archlinux.org
Sun Oct 8 15:27:08 UTC 2017


    Date: Sunday, October 8, 2017 @ 15:27:07
  Author: anatolik
Revision: 262149

upgpkg: dtc 1.4.5-1

Modified:
  dtc/trunk/PKGBUILD

----------+
 PKGBUILD |   14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-10-08 14:46:32 UTC (rev 262148)
+++ PKGBUILD	2017-10-08 15:27:07 UTC (rev 262149)
@@ -3,18 +3,24 @@
 # Contributor: Frederic Bezies <fredbezies at gmail dot com>
 
 pkgname=dtc
-pkgver=1.4.4
+pkgver=1.4.5
 pkgrel=1
 pkgdesc='Device Tree Compiler'
 url='http://www.devicetree.org/Device_Tree_Compiler'
 arch=(i686 x86_64)
 license=(GPL2)
-source=(https://www.kernel.org/pub/software/utils/dtc/dtc-$pkgver.tar.xz)
-sha256sums=('470731d5c015b160d26a96645dbb1c7337d6e7b8c98244612002b66bedf6cffb')
+checkdepends=(python2)
+makedepends=(swig)
+source=(https://www.kernel.org/pub/software/utils/dtc/dtc-$pkgver.tar.xz
+        fix32bit.patch::https://github.com/dgibson/dtc/commit/f8872e29ce06d78d3db71b3ab26a7465fc8a9586.patch)
+sha256sums=('042c7164806af34069d13ede59d85b8156d09f179f721c516dc37712d3a0f621'
+            'e92bfc787b65e2610528d5c499835c083c1672455fc7998d202b7c986d5c5f1d')
 
 prepare() {
   cd dtc-$pkgver
   sed -i 's/-Werror//' Makefile
+  sed -i 's/python\b/python2/' tests/run_tests.sh
+  patch -p1 < ../fix32bit.patch
 }
 
 build() {
@@ -29,6 +35,6 @@
 
 package() {
   cd dtc-$pkgver
-  make DESTDIR="$pkgdir" PREFIX=/usr install
+  make DESTDIR="$pkgdir" SETUP_PREFIX="$pkgdir/usr" PREFIX=/usr install
 }
 



More information about the arch-commits mailing list