Skip to content

Commit

Permalink
goshs: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
dadevel committed Jul 5, 2024
1 parent 0fd3f52 commit 8adfd93
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions goshs/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@ sha256sums=(SKIP)
build() {
cd "${srcdir}/${pkgname}"
npm install uglify-js sass
sed -i -e 's/@sass/@npx sass/' -e 's/@uglifyjs/@npx uglifyjs/' -e 's/clean generate security/clean generate/' -e 's/@GOOS=windows/# &/' -e 's/@GOOS=darwin/# &/' -e 's/@GOOS=linux GOARCH=arm/# &/' -e 's/@GOOS=linux GOARCH=386/# &/' Makefile
go mod tidy
make build
npx make build-linux
}

package() {
cd "${srcdir}/${pkgname}/dist/linux_amd64/"
cd "${srcdir}/${pkgname}"
mkdir -p "${pkgdir}/opt/archpkgs/bin"
install -Dm 755 "./${pkgname}" "${pkgdir}/opt/archpkgs/bin/${pkgname}"
install -Dm 755 "./dist/linux_amd64/${pkgname}" "${pkgdir}/opt/archpkgs/bin/${pkgname}"
}

pkgver() {
Expand Down

0 comments on commit 8adfd93

Please sign in to comment.