[arch-commits] Commit in editorconfig-checker/repos (2 files)
Orhun Parmaksiz
orhun at gemini.archlinux.org
Wed Feb 23 11:18:22 UTC 2022
Date: Wednesday, February 23, 2022 @ 11:18:21
Author: orhun
Revision: 1136269
archrelease: copy trunk to community-x86_64
Added:
editorconfig-checker/repos/community-x86_64/
editorconfig-checker/repos/community-x86_64/PKGBUILD
(from rev 1136268, editorconfig-checker/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: editorconfig-checker/repos/community-x86_64/PKGBUILD (from rev 1136268, editorconfig-checker/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2022-02-23 11:18:21 UTC (rev 1136269)
@@ -0,0 +1,38 @@
+# Maintainer: Orhun Parmaksız <orhun at archlinux.org>
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+
+pkgname=editorconfig-checker
+pkgver=2.4.0
+pkgrel=2
+pkgdesc='A tool to verify that your files are in harmony with your .editorconfig'
+arch=('x86_64')
+url="https://github.com/editorconfig-checker/$pkgname"
+license=(MIT)
+makedepends=(go)
+provides=(ec)
+source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
+sha256sums=('11acac377a0e9916c062eeb4ddd1206fb6c35a0bd734108bd094a44c256767b5')
+
+build() {
+ cd "$pkgname-$pkgver"
+ export CGO_CPPFLAGS="$CPPFLAGS"
+ export CGO_CFLAGS="$CFLAGS"
+ export CGO_CXXFLAGS="$CXXFLAGS"
+ export CGO_LDFLAGS="$LDFLAGS"
+ export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
+ go build -o "$pkgname" ./cmd/...
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ go test ./...
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ install -Dm755 -t "$pkgdir/usr/bin/" "$pkgname"
+ ln -sf "$pkgname" "$pkgdir/usr/bin/ec"
+ install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list