From a6e8d71dc0f619c2a5a1a2efa3996a49526c4061 Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Thu, 23 May 2019 20:04:51 -0700 Subject: [PATCH] add adb-sync-git --- adb-sync-git/.SRCINFO | 16 ++++++++++++++++ adb-sync-git/PKGBUILD | 27 +++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 adb-sync-git/.SRCINFO create mode 100644 adb-sync-git/PKGBUILD diff --git a/adb-sync-git/.SRCINFO b/adb-sync-git/.SRCINFO new file mode 100644 index 0000000..46c7545 --- /dev/null +++ b/adb-sync-git/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = adb-sync-git + pkgdesc = A tool to synchronize files between a PC and an Android device using the ADB + pkgver = r35.fb7c549 + pkgrel = 1 + url = https://github.com/google/adb-sync + arch = any + license = Apache + makedepends = git + depends = python + depends = android-tools + depends = android-udev + source = git+https://github.com/google/adb-sync + sha1sums = SKIP + +pkgname = adb-sync-git + diff --git a/adb-sync-git/PKGBUILD b/adb-sync-git/PKGBUILD new file mode 100644 index 0000000..eb40fea --- /dev/null +++ b/adb-sync-git/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Trent +# contributor: Anatol + +pkgname=adb-sync-git +pkgver=r35.fb7c549 +pkgrel=1 +pkgdesc='A tool to synchronize files between a PC and an Android device using the ADB' +url='https://github.com/google/adb-sync' +arch=(any) +depends=(python android-tools android-udev) +makedepends=(git) +license=(Apache) +source=(git+https://github.com/google/adb-sync) +sha1sums=('SKIP') + +pkgver() { + cd adb-sync + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd adb-sync + install -m755 -d "$pkgdir/usr/bin" + install -m755 -t "$pkgdir/usr/bin" adb-sync adb-channel + + install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}