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
2021-12-16 15:14:13 +00:00
pkgver=0.2.1
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")
2021-12-16 15:14:13 +00:00
sha512sums=('5cf3c3bdc432971edc71edac31f355c91f417c3358e17f7cae62f2a4808a7145e5b12f47977680b8692e14cc28fc62da423a0d7c4835c5a662c2170acd377dea')
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
}