# For ArchLinux by Joël Porquet pkgname=dtc pkgver=20120614 pkgrel=1 pkgdesc="Device Tree Compiler" url="http://jdl.com/software/" arch=('i686' 'x86_64') license=('GPL2') makedepends=('git') _gitroot='http://jdl.com/software/dtc.git/' _gitname='dtc' build() { msg 'Connecting to GIT server...' if [[ -d ${_gitname} ]] then cd ${_gitname} git pull else git clone ${_gitroot} fi msg 'GIT checkout done or server timeout' } package() { cd ${_gitname} make || return 1 make INSTALL=$(which install) DESTDIR=${pkgdir} PREFIX=/usr install || return 1 }