2013-02-19 02:39:47 +00:00
|
|
|
# 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')
|
2013-02-19 03:03:38 +00:00
|
|
|
makedepends=('git')
|
2013-02-19 02:39:47 +00:00
|
|
|
|
|
|
|
_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
|
|
|
|
}
|
|
|
|
|