mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
35 lines
613 B
Bash
35 lines
613 B
Bash
# 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
|
|
}
|
|
|