Skip to content

Instantly share code, notes, and snippets.

@yan12125 yan12125/PKGBUILD Secret
Created Jun 2, 2016

Embed
What would you like to do?
fb-adb-git
# Maintainer: Kevin MacMartin <prurigro at gmail dot com>
_pkgname=fb-adb
pkgname=$_pkgname-git
pkgver=20160531.r339.d05b091
pkgrel=1
pkgdesc='A better shell to use in place of adb when connecting to Android devices'
url='https://github.com/facebook/fb-adb'
license=('GPL3')
arch=('i686' 'x86_64')
depends=('android-tools')
makedepends=('git' 'vim' 'android-sdk' 'android-platform-19' 'android-sdk-build-tools' 'android-ndk')
options=('!strip' '!buildflags')
source=("git+$url.git")
sha512sums=('SKIP')
pkgver() {
cd $_pkgname
printf "%s.r%s.%s" "$(git show -s --format=%ci master | sed 's/\ .*//g;s/-//g')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
# configure
cd $_pkgname
./autogen.sh
# build
install -d build
cd build
ANDROID_SDK="$ANDROID_HOME" ../configure --enable-checking=yes
make
}
package() {
install -Dm755 $_pkgname/build/$_pkgname "$pkgdir/usr/bin/$_pkgname"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.