added alarm/dtc145

This commit is contained in:
Kevin Mihelich 2018-02-10 19:33:07 +00:00
parent 01e022d411
commit f2559f383d

39
alarm/dtc145/PKGBUILD Normal file
View file

@ -0,0 +1,39 @@
# $Id$
# Maintainer: Anatol Pomozov
# Contributor: Frederic Bezies <fredbezies at gmail dot com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - old dtc for old U-Boot
pkgname=dtc145
pkgver=1.4.5
pkgrel=1
pkgdesc='Device Tree Compiler 1.4.5'
url='http://www.devicetree.org/Device_Tree_Compiler'
arch=(x86_64)
license=(GPL2)
makedepends=(swig python2)
source=(https://www.kernel.org/pub/software/utils/dtc/dtc-$pkgver.tar.xz)
sha256sums=('042c7164806af34069d13ede59d85b8156d09f179f721c516dc37712d3a0f621')
prepare() {
cd dtc-$pkgver
sed -i 's/-Werror//' Makefile
sed -i 's/python\b/python2/' tests/run_tests.sh
}
build() {
cd dtc-$pkgver
make
}
check() {
cd dtc-$pkgver
make check
}
package() {
cd dtc-$pkgver
make DESTDIR="$pkgdir" SETUP_PREFIX="$pkgdir/usr" PREFIX=/usr install
}