Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions git-lfs.be0
Original file line number Diff line number Diff line change
@@ -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
#}