PKGBUILDs/alarm/dtc-overlay/PKGBUILD

32 lines
682 B
Bash

# Maintainer: Stefan Agner <stefan@agner.ch>
pkgname=dtc-overlay
_gitname=dtc
pkgver=1.4.0
pkgrel=1
pkgdesc="Device Tree Compiler with device tree overlay (Symbols and Fixup) support"
url="http://jdl.com/software/"
conflicts=('dtc', 'dtc-git')
arch=('armv7h')
license=('GPL2')
source=('git+http://jdl.com/software/dtc.git#tag=v1.4.0'
'dtc-dynamic-symbols-fixup-support.patch')
md5sums=('SKIP'
'6f0baf8509b56755643e9d62d94ec7bf')
prepare() {
cd ${_gitname}
git am ${srcdir}/dtc-dynamic-symbols-fixup-support.patch
}
build() {
cd ${_gitname}
make || return 1
}
package() {
cd ${_gitname}
make INSTALL=$(which install) DESTDIR=${pkgdir} PREFIX=/usr install || return 1
}