summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c1f5914c77e581ef88e0908272bccb481415b404 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Maintainer: willemw <willemw12@gmail.com>
# Contributor: Anatol Pomozov <anatol dot pomozov at gmail>

pkgname=adb-sync-git
pkgver=r36.76b2783
pkgrel=1
pkgdesc='Synchronize files between a PC and an Android device using the ADB (Android Debug Bridge)'
arch=('any')
url='https://github.com/google/adb-sync'
license=('Apache')
depends=('android-tools' 'android-udev' 'python')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')

pkgver() {
  cd $pkgname
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  install -Dm755 $pkgname/{adb-sync,adb-channel} -t "$pkgdir/usr/bin"
}