gofumpt/PKGBUILD

24 lines
731 B
Text
Raw Normal View History

2021-01-31 12:34:56 +00:00
# Maintainer: Knut Ahlers <knut at ahlers dot me>
pkgname=gofumpt
2022-09-27 23:15:49 +00:00
pkgver=0.4.0
2021-01-31 12:34:56 +00:00
pkgrel=1
pkgdesc="A stricter gofmt"
arch=('i686' 'x86_64')
url="https://github.com/mvdan/gofumpt"
license=('custom')
makedepends=('go')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mvdan/gofumpt/archive/v${pkgver}.tar.gz")
2022-09-27 23:15:49 +00:00
sha512sums=('b23a1f4eb1ee642c9516ca85efacb7e49160061ec22d59a7e33713059de3a3032672c7a3d28d746bd76c0a0e28fb56159cf5b54c21519aa9c411ffd87a399520')
2021-01-31 12:34:56 +00:00
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
}