diff --git a/git-lfs.be0 b/git-lfs.be0 new file mode 100755 index 000000000..4644806cb --- /dev/null +++ b/git-lfs.be0 @@ -0,0 +1,50 @@ +#!/usr/bin/env beesh + +# BEE_VERSION git_lfs-3.8.0-0 + +# the vendor tarball is the release tarball plus vendor/, so no module +# downloads are needed at build time +# SRCURL[0]="https://github.com/git-lfs/git-lfs/releases/download/v${PKGVERSION}/git-lfs-vendor-v${PKGVERSION}.tar.gz" + +SRCURL[0]="https://beehive.molgen.mpg.de/fba8df374fa297d343b29919f0d5a6bd/git-lfs-vendor-v3.8.0.tar.gz" + +BEE_BUILDTYPE= +export GOPATH=${B}/bee_go +# go(1) puts its build artifacts into the build cache, so point that below ${B} +# to get it into bee's build archive +export GOCACHE=${B}/bee_gocache +export GOFLAGS="-buildmode=pie -ldflags=-linkmode=external -trimpath -mod=vendor -modcacherw" + +# PATCHURL+=() + +# build_in_sourcedir + +# sourcesubdir_append src + +mee_getsources() { + bee_getsources + # go get golang.org/x/tools/cmd/goimports +} + +#mee_patch() { +# bee_patch "${@}" +#} + +#mee_configure() { +# bee_configure +#} + +mee_build() { + # go(1) wants the module directory as its working directory, so pass it + # with -C instead of relying on the current one + go build -C ${S} -o ${B}/git-lfs +} + +mee_install() { + mkdir -p ${D}/usr/bin + cp ${B}/git-lfs ${D}/usr/bin/git-lfs +} + +#mee_install_post() { +# exit +#}