From 2505ed3c732d66714e41dde15885681ac5ce6fd8 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sun, 31 Jan 2021 13:34:56 +0100 Subject: [PATCH] Initial version --- .SRCINFO | 14 ++++++++++++++ PKGBUILD | 23 +++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..d7a397d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = gofumpt + pkgdesc = A stricter gofmt + pkgver = 0.1.0 + pkgrel = 1 + url = https://github.com/mvdan/gofumpt + arch = i686 + arch = x86_64 + license = custom + makedepends = go + source = gofumpt::https://github.com/mvdan/gofumpt/archive/v0.1.0.tar.gz + sha512sums = 6d16a40c8155bfa971800f97babf087ab8b542e4dcd1bb2be815288c2fdc4a16d565c923fc65cd6c5becb315e67fac30b725bb1b06f41ba1a17e8953462ef8f6 + +pkgname = gofumpt + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..820acd3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: Knut Ahlers + +pkgname=gofumpt +pkgver=0.1.0 +pkgrel=1 +pkgdesc="A stricter gofmt" +arch=('i686' 'x86_64') +url="https://github.com/mvdan/gofumpt" +license=('custom') +makedepends=('go') +source=("${pkgname}::https://github.com/mvdan/gofumpt/archive/v${pkgver}.tar.gz") +sha512sums=('6d16a40c8155bfa971800f97babf087ab8b542e4dcd1bb2be815288c2fdc4a16d565c923fc65cd6c5becb315e67fac30b725bb1b06f41ba1a17e8953462ef8f6') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + GO111MODULE=on go build -mod=readonly +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + install -Dm755 -t "${pkgdir}/usr/bin" gofumpt + install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE LICENSE.google +}