adding aur/dtc

This commit is contained in:
Mike Brown 2013-02-18 21:39:47 -05:00
parent e1930aa044
commit 1d201c62a8

34
aur/dtc/PKGBUILD Normal file
View file

@ -0,0 +1,34 @@
# 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')
_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
}