aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ameba/APKBUILD
blob: c0820da331ce5bb202ea01ea331bd7b1eb282620 (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.0
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="a034ac74118217ace46f9e5967744c360d58fe6b5919a5fab9c49f01f939657c02fee3fbdf88801726e919ff0395caa26411fe3a39529c6952f75810b3dfc421  ameba-0.12.0.tar.gz"