summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4921534c0b225ad2672086a1588a3556d8263af7 (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
27
# Maintainer: nslxndr
# Contributor: palmtree5
pkgname=android-bash-completion
pkgver=r43.c1b0656
pkgrel=1
pkgdesc="Bash completion for android, adb, emulator, fastboot, and repo"
arch=(any)
url="https://github.com/mbrubeck/android-completion"
license=('MIT')
depends=('android-sdk-platform-tools' 'bash' 'bash-completion')
makedepends=('git')
source=('android-completion::git+https://github.com/mbrubeck/android-completion.git')
md5sums=('SKIP')

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

package() {
  mkdir -p $pkgdir/usr/share/licenses/android-bash-completion/
  mkdir -p $pkgdir/etc/bash_completion.d/
  cd android-completion
  tail -n 22 README.markdown >> $pkgdir/usr/share/licenses/android-bash-completion/LICENSE
  cp android $pkgdir/etc/bash_completion.d/android
  cp repo $pkgdir/etc/bash_completion.d/repo
}