diff options
author | Vlad Pirlog | 2024-05-06 15:32:16 +0300 |
---|---|---|
committer | Vlad Pirlog | 2024-05-06 15:32:16 +0300 |
commit | 9c7bd57fb19ccfb27434b85026cfee8d5001da9d (patch) | |
tree | 95e66808922eb67be13f890b176cedb4a3c38957 /PKGBUILD | |
parent | 1009401e8187f99a29a269c4caab6c4583699f20 (diff) | |
download | aur-dmarc-report-converter.tar.gz |
Pin git tag using checksum of checkout content instead of commit hash
Make the build reproducible by removing the go buildid from output binary and adding \!debug option
Remove gofmt command from check() function
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -2,20 +2,20 @@ pkgname=dmarc-report-converter pkgver='0.8.0' -pkgrel=1 +pkgrel=2 pkgdesc='Convert DMARC reports from XML to human-readable formats' arch=('x86_64') url='https://github.com/tierpod/dmarc-report-converter' license=('MIT') depends=('glibc') makedepends=('git' 'go') -_tag=e405a03c200733036bf7f7b859df82a379354448 # git rev-parse "v$pkgver" -source=("${pkgname}-${pkgver}::git+https://github.com/tierpod/dmarc-report-converter#tag=$_tag" +options=('!debug') +source=("${pkgname}-${pkgver}::git+https://github.com/tierpod/dmarc-report-converter.git#tag=v${pkgver}" 'config.yml' 'dmarc-report-converter.service' 'dmarc-report-converter.timer' 'change-default-path-of-config-file.patch') -b2sums=('SKIP' +b2sums=('0766cb2a7a5ec7a51a9e7f7081fc7277f4c2b7759bf57f0ab260f88438feedf389ff0965b10cff80df3b73dc200a6c819ed88e35fc8d45735477ff5d126ff74c' '7047b02100027203d7c0978f1607f41b0bccdb79a8c4a8f59bcf4f89ff2d9b9903cb8c5060a295a12a9ebfe8a378163e4ae3c61ddb181f58a236489fb2a5eb47' '47ea048087d075d030b087a577968d999c891437da0e43aa919eb2ce756885e614b1ef1fa31a96880e16f0a9d75b609c7e2d95c536feac9e59aa5aa3e6ffa3d6' 'f60f37cacff1384b3b60236c13bd5303728f8f2aa22a561d8dbdb43020f0db47b89babcf30cafc4d9ce12783935b4c1c41507fa218cea61a3cca68a1d03b9852' @@ -41,7 +41,7 @@ build() { -buildmode=pie \ -mod=vendor \ -modcacherw \ - -ldflags="-linkmode=external -X main.version=${pkgver}" \ + -ldflags="-linkmode=external -X main.version=${pkgver} -buildid=" \ -o dist/ \ ./cmd/... } @@ -49,8 +49,6 @@ build() { check() { cd "${pkgname}-${pkgver}" - find ./cmd ./pkg -type f -name '*.go' | xargs gofmt -l -e - go vet -mod=vendor ./cmd/... ./pkg/... go test -mod=vendor ./cmd/... ./pkg/... } |