Skip to content

Commit

Permalink
Update PKGBUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
taozuhong authored Dec 25, 2024
1 parent 4a41ba4 commit 4f388bc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mingw-w64-libexcelize/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,14 @@ build() {
export GO_LDFLAGS="-s -w"
# export GOFLAGS="-trimpath -mod=readonly -modcacherw -ldflags=-linkmode=external"

go build -buildmode=c-shared -o libexcelize.dll main.go
go build -buildmode=c-archive -o excelize.a main.go
go build -buildmode=c-shared -o excelize.dll main.go
}

package() {
cd "build-${MINGW_CHOST}"
install -Dm755 "libexcelize.dll" "${pkgdir}${MINGW_PREFIX}/bin/libexcelize.dll"
install -Dm755 "libexcelize.h" "${pkgdir}${MINGW_PREFIX}/include/libexcelize.h"
install -Dm755 "excelize.dll" "${pkgdir}${MINGW_PREFIX}/bin/excelize.dll"
install -Dm755 "excelize.a" "${pkgdir}${MINGW_PREFIX}/lib/excelize.a"
install -Dm755 "excelize.pc" "${pkgdir}${MINGW_PREFIX}/lib/pkgconfig/excelize.pc"
install -Dm755 "excelize.h" "${pkgdir}${MINGW_PREFIX}/include/excelize.h"
}

0 comments on commit 4f388bc

Please sign in to comment.