summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c6233f715857d50b9f4be42a080e259705c1cc15 (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
28
29
30
31
32
33
34
# $Id$
# Maintainer: winlu <derwinlu@gmail.com>

_pkgname=rebar3
pkgname=${_pkgname}-git
pkgver=5238.ac6f8bcb
pkgrel=1
pkgdesc="A sophisticated build-tool for Erlang projects that follows OTP principles."
arch=('any')
url="https://github.com/erlang/rebar3"
license=('APACHE')
depends=('erlang-nox')
optdepends=('rebar3-zsh: ZSH completion')
conflicts=('rebar3')
provides=('rebar3')
makedepends=('git')
source=("$_pkgname::git+https://github.com/erlang/rebar3.git")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd "$srcdir/$_pkgname"
  HOME="." ./bootstrap
}

package() {
  cd "$srcdir/$_pkgname"
  install -Dm0755 "${_pkgname}" "$pkgdir/usr/bin/${_pkgname}"
  install -Dm0644 "apps/rebar/priv/shell-completion/bash/rebar3" "$pkgdir/usr/share/bash-completion/completions/rebar3"
}