updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / adb / PKGBUILD
blob270c7301f914704bd8dcc1d6c1122beafbb5b539
1 # Maintainer: zhn <zhangn1985 AT gmail com>
3 pkgname=adb
4 pkgver=2.3
5 pkgrel=2
6 pkgdesc="adb host for Linux"
7 arch=("i686" "x86_64")
8 license=('Apache')
9 url="http://www.android.com"
10 makedepends=('git' 'autoconf')
12 __giturl="git://github.com/zhangn1985/adb.git"
13 __gitname="adb"
14 __gitbranch="gingerbread"
15 build() {
16         cd ${srcdir}
17         if [ -d ${__gitname} ];then
18                 cd ${__gitname}
19                 git pull
20                 git checkout ${__gitbranch}
21         else
22                 git clone ${__giturl}
23                 cd ${__gitname}
24                 git checkout ${__gitbranch}
25         fi
26         ./auto.sh --prefix=/usr
28 package(){
29         cd ${srcdir}/${__gitname}
30         make DESTDIR=${pkgdir} install