# $Id$ # Maintainer: winlu _pkgname=rebar3 pkgname=${_pkgname}-git pkgver=2569.e09be18 pkgrel=1 pkgdesc="A sophisticated build-tool for Erlang projects that follows OTP principles." arch=('any') url="https://github.com/rebar/rebar3" license=('APACHE') depends=('erlang-nox') conflicts=('rebar3') provides=('rebar3') makedepends=('git') source=("$_pkgname::git://github.com/rebar/rebar3.git") sha256sums=('SKIP') pkgver() { cd "$srcdir/$_pkgname" echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) } build() { cd "$srcdir/$_pkgname" ./bootstrap } package() { cd "$srcdir/$_pkgname" install -Dm0755 "${_pkgname}" "$pkgdir/usr/bin/${_pkgname}" install -Dm0644 "priv/shell-completion/bash/rebar3" "$pkgdir/usr/share/bash-completion/completions/rebar3" }