[go: nahoru, domu]

Skip to content

Commit

Permalink
dtc: Update to 1.4.7 (#1404)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbud authored and Alexpux committed Sep 9, 2018
1 parent 9d7260b commit 580ec47
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions dtc/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Maintainer: Andy Gross <andy.gross@linaro.org>

pkgname=dtc
pkgver=1.4.6
pkgver=1.4.7
pkgrel=1
pkgdesc="Device Tree Compiler"
arch=('i686' 'x86_64')
Expand All @@ -11,7 +11,7 @@ groups=('base')
makedepends=('python2' 'swig' 'libcrypt-devel')
source=("https://git.kernel.org/pub/scm/utils/dtc/dtc.git/snapshot/${pkgname}-${pkgver}.tar.gz"
01-correct-shared-library-extension.patch)
sha256sums=('394d2fb852c326b070e9d7732b396f5d57da86cac728fe58a519a505cfb01837'
sha256sums=('603d6f4f5f34921b368e6febe6690c89022d098edda77187a758b8eeeeff53ea'
'1ed428b3e1f140132522f54984e9b8cc2c20365517569bbd8784852af8dfa503')

prepare() {
Expand All @@ -20,6 +20,8 @@ prepare() {

# to make check work
sed -i 's/__attribute__((weak))//' tests/testutils.c
sed -i 's|#include <valgrind/|//#include <valgrind/|' tests/testutils.c
sed -i 's|VALGRIND_|//VALGRIND_|' tests/testutils.c
patch -p1 -i "${srcdir}/01-correct-shared-library-extension.patch"
}

Expand All @@ -37,6 +39,10 @@ package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make PREFIX= DESTDIR="${pkgdir}/usr" install

rm ${pkgdir}/usr/lib/libfdt.dll.1
rm ${pkgdir}/usr/lib/libfdt-${pkgver}.dll
mv ${pkgdir}/usr/lib/libfdt.dll ${pkgdir}/usr/bin

# license
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/README.license ${pkgdir}/usr/share/licenses/${pkgname}/README.license
}
Expand Down

0 comments on commit 580ec47

Please sign in to comment.