aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ameba/APKBUILD
blob: 2b78e3ba75589bb07b6a9895132aa0b352eaf63d (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
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ameba
pkgver=0.12.1
pkgrel=0
pkgdesc="A static code analysis tool for Crystal"
url="https://github.com/crystal-ameba/ameba"
arch="x86_64" # limited by crystal aport
license="MIT"
makedepends="crystal libxml2-dev shards yaml-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/veelenga/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

export CRYSTAL_CACHE_DIR="$srcdir/.cache"

build() {
	cd "$builddir"
	make CRFLAGS="--release"
}

check() {
	cd "$builddir"
	make test SPEC_FLAGS="--no-color"
}

package() {
	cd "$builddir"
	make install PREFIX="$pkgdir/usr"
}

sha512sums="1c7612541c2a6cc79a9c95baf702d02c417fa1e9ec8614b24e96ba4e6df6147fc11919740820e9c36f0fed547c122a090acffcfda7844ea5049be2eaf29b4999  ameba-0.12.1.tar.gz"