Created
January 12, 2019 20:31
-
-
Save anatol/49521f865dfd06ed0793d6e6d49b24d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Anatol Pomozov <[email protected]> | |
pkgname=jiri-git | |
pkgver=r1423 | |
pkgrel=1 | |
pkgdesc='A tool for multi-repo development similar to Android repo' | |
arch=(i686 x86_64) | |
url='https://fuchsia.googlesource.com/jiri' | |
license=(MIT) | |
depends=() | |
makedepends=(git go cmake ninja python2 dep) | |
source=( | |
git+https://fuchsia.googlesource.com/jiri | |
) | |
sha1sums=('SKIP') | |
pkgver() { | |
cd jiri | |
echo r$(git rev-list --count master) | |
} | |
prepare() { | |
mkdir -p gopath/src/fuchsia.googlesource.com | |
ln -rTsf jiri gopath/src/fuchsia.googlesource.com/jiri | |
export GOPATH="$srcdir"/gopath | |
# the dependencies can be fetched here if needed | |
cd gopath/src/fuchsia.googlesource.com/jiri | |
dep init | |
dep ensure | |
} | |
build() { | |
export GOPATH="$srcdir"/gopath | |
cd gopath/src/fuchsia.googlesource.com/jiri | |
go install -v . | |
} | |
package() { | |
cd jiri | |
install -D -m755 jiri "$pkgdir"/usr/bin/jiri | |
install -D -m644 scripts/jiri-bash-completion.sh "$pkgdir"/usr/share/bash-completion/completions/jiri | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment