From 8adfd93d39d08d559277ecfebfbf7a774da61127 Mon Sep 17 00:00:00 2001 From: dadevel Date: Fri, 5 Jul 2024 22:10:22 +0200 Subject: [PATCH] goshs: fix build --- goshs/PKGBUILD | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/goshs/PKGBUILD b/goshs/PKGBUILD index da22b65a..40e04c83 100644 --- a/goshs/PKGBUILD +++ b/goshs/PKGBUILD @@ -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() {