summaryrefslogtreecommitdiff
path: root/user/erl-rebar3/APKBUILD
blob: 75cb671d59dca1d82aee9bbfc053485081a28d03 (plain) (blame)
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
# Contributor: Alyx Wolcott <alyx@leuhta.com>
# Maintainer: Alyx Wolcott <alyx@leuhta.com>
pkgname=erl-rebar3
pkgver=3.11.1
pkgrel=0
pkgdesc="Erlang build tool"
url="http://www.rebar3.org/"
arch="all"
license="Apache-2"
options="!tracedeps"
depends="erlang"
makedepends="erlang-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://codeload.github.com/erlang/rebar3/tar.gz/$pkgver"
builddir="$srcdir/rebar3-$pkgver"

build() {
	./bootstrap
}

check() {
	./rebar3 ct
}

package() {
	install -d -m755 $pkgdir/usr/bin/
	install -m755 ./rebar3 $pkgdir/usr/bin/
	gzip -c ./manpages/rebar3.1 > ./manpages/rebar3.1.gz
	install -d -m755 $pkgdir/usr/share/man/man1/
	install -m644 ./manpages/rebar3.1.gz $pkgdir/usr/share/man/man1/
}

sha512sums="749368c8c19641d0c1083f1750438cfc5f1c75e284bd74b4f8ae368103e79a376f4bd91e85db35e1619116cd2f3b1a8dc2d3d89db19da8f4440e0b58d3c0a37c  erl-rebar3-3.11.1.tar.gz"