blob: 4d76f97e34160b6c4d3cb3295de0ee4f59c85dfe (
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
|
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ameba
pkgver=0.10.1
pkgrel=1
pkgdesc="A static code analysis tool for Crystal"
url="https://veelenga.github.io/ameba/"
arch="x86_64 aarch64"
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="1a9e2591e603eb1824584aced7025903554a24c42d7eab4d370b471db944340df03abe4c0447a4016a62501265bb27aafedb923faf2a06024c66c97406e52f36 ameba-0.10.1.tar.gz"
|