[PATCH] testing/ameba: upgrade to 0.10.1
Export this patch
---
testing/ameba/APKBUILD | 14 +++++---------
testing/ameba/fix-makefile.patch | 8 +++++---
2 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/testing/ameba/APKBUILD b/testing/ameba/APKBUILD
index 354434f777..3842492a24 100644
--- a/testing/ameba/APKBUILD
+++ b/testing/ameba/APKBUILD
@@ -1,33 +1,29 @@
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ameba
-pkgver=0.8.0
+pkgver=0.10.1
pkgrel=0
pkgdesc="A static code analysis tool for Crystal"
-url="https://veelenga.github.io/ameba/"
+url="https://crystal-ameba.github.io/"
arch="x86_64" # limited by crystal. build fails on 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
+source="$pkgname-$pkgver.tar.gz::https://github.com/veelenga/ameba/archive/v$pkgver.tar.gz
fix-makefile.patch"
-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="5ee602374f7b3c7241bfe16d0afeb74af5acf5b3530d8cac3b3b59c8c9b39e017bec018b04bdb79d973cd473ed84c07a7d8e8ed376d1f0c7ecff9a3fe48971c6 ameba-0.8.0.tar.gz
-0acb42fe00c650b801f88911457e3d83f7297719494094e8687b67093d5641b6f892d63c603fd2d346a8db06128158ae4ace3a8a9bd5852b838c6a4d6104e9d6 fix-makefile.patch"
+sha512sums="1a9e2591e603eb1824584aced7025903554a24c42d7eab4d370b471db944340df03abe4c0447a4016a62501265bb27aafedb923faf2a06024c66c97406e52f36 ameba-0.10.1.tar.gz
+6db313c33086b742bc9d341812640c9e5afcb43bdbafca0e5a5664b1302460ccdab4c3d74142d0735437504bcf0204976b85546eb4cb74d6018dec8974573663 fix-makefile.patch"
diff --git a/testing/ameba/fix-makefile.patch b/testing/ameba/fix-makefile.patch
index 10d0b7308b..7003fb33ea 100644
--- a/testing/ameba/fix-makefile.patch
+++ b/testing/ameba/fix-makefile.patch
@@ -1,12 +1,13 @@
+diff --git a/Makefile b/Makefile
+index 7cf3818..e6718a8 100644
--- a/Makefile
+++ b/Makefile
-@@ -3,17 +3,19 @@
+@@ -3,19 +3,20 @@ SHARDS_BIN ?= $(shell which shards)
PREFIX ?= /usr/local
SHARD_BIN ?= ../../bin
+.PHONY: build
build: bin/ameba
-+
bin/ameba:
$(SHARDS_BIN) build $(CRFLAGS)
clean:
@@ -19,9 +20,10 @@
+bin: bin/ameba
mkdir -p $(SHARD_BIN)
cp ./bin/ameba $(SHARD_BIN)
+ run_file:
+ cp -r ./bin/ameba.cr $(SHARD_BIN)
-test: build
- $(CRYSTAL_BIN) spec
+test: bin/ameba
+ $(CRYSTAL_BIN) spec $(SPEC_FLAGS)
./bin/ameba --all
-
--
2.21.0