mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
adding aur/dtc
This commit is contained in:
parent
e1930aa044
commit
1d201c62a8
1 changed files with 34 additions and 0 deletions
34
aur/dtc/PKGBUILD
Normal file
34
aur/dtc/PKGBUILD
Normal 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
|
||||
}
|
||||
|
Loading…
Reference in a new issue