Skip to content

Commit

Permalink
fix: attempt to fir aur sources release
Browse files Browse the repository at this point in the history
  • Loading branch information
atinylittleshell committed Jan 21, 2025
1 parent 28b0e0b commit 762c1b5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,20 @@ aur_sources:
commit_author:
name: atinylittleshell
email: [email protected]
prepare: |-
cd "${srcdir}/${_pkgsrc}"
go mod download
build: |-
cd "${srcdir}/${_pkgsrc}"
export CGO_ENABLED=0
export GOFLAGS="-buildmode=pie \
-trimpath \
-ldflags=\"-linkmode=external -X main.BUILD_VERSION=${pkgver}\" \
-mod=readonly \
-modcacherw"
make build
package: |-
cd "${pkgname}_${pkgver}"
cd "${srcdir}/${_pkgsrc}"
# bin
install -Dsm755 "./gsh" "${pkgdir}/usr/bin/gsh"
Expand Down

0 comments on commit 762c1b5

Please sign in to comment.