blob: 32cf6a9008132e77b7046ce0c257c40d1da342f7 (
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
|
# Maintainer: Vadim Yanitskiy <fixeria@osmocom.org>
# Contributor: winlu <derwinlu@gmail.com>
_pkgname=rebar3
pkgname=${_pkgname}-git
pkgver=5385.4594b00f
pkgrel=1
pkgdesc="A sophisticated build-tool for Erlang projects that follows OTP principles."
arch=('any')
url="https://github.com/erlang/rebar3"
license=('Apache-2.0')
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"
}
|