aboutsummaryrefslogtreecommitdiffstats
path: root/community/editorconfig-checker/APKBUILD
blob: a3d1244df37e32322b962a3683f66aa049d950c8 (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
32
33
34
35
36
# Contributor: Anjandev Momi <anjan@momi.ca>
# Maintainer: Anjandev Momi <anjan@momi.ca>
pkgname=editorconfig-checker
pkgver=2.4.0
pkgrel=3
pkgdesc="A tool to verify that your files are in harmony with your .editorconfig"
url="https://editorconfig-checker.github.io/"
license="MIT"
arch="all"
makedepends="go"
options="chmod-clean"
builddir="$srcdir/github.com/editorconfig-checker/$pkgname"
source="$pkgname-$pkgver.tar.gz::https://github.com/editorconfig-checker/editorconfig-checker/archive/$pkgver.tar.gz"

prepare() {
	mkdir -p "$srcdir/github.com/editorconfig-checker"
	mv "$srcdir/$pkgname-$pkgver" "$srcdir/github.com/editorconfig-checker/editorconfig-checker"
	default_prepare
}

check() {
	sed -i 's/-race//' Makefile # -buildmode=pie not supported when -race is enabled
	GOPATH="$srcdir" make test
}

build() {
	GOPATH="$srcdir" make build
}

package() {
	install -Dm755 "$builddir/bin/ec" -t "$pkgdir/usr/bin"
}

sha512sums="
5b9d7f959666a23f5aec44866fa7faa47ddf608a954aa74336aca828eaf652ca99bc1883fc973f7c3ea1628dc35d0cf6f26ef498d14a7d958e362d3f68032ed8  editorconfig-checker-2.4.0.tar.gz
"