new bblfs: dev-vcs/lazygit-0.58.1
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
pkgname=lazygit
|
||||
pkgver=0.58.1
|
||||
pkgdesc="Simple terminal UI for git commands"
|
||||
homepage="https://github.com/jesseduffield/lazygit"
|
||||
license=("Apache-2.0" BSD ISC MIT Unlicense)
|
||||
depends=(git)
|
||||
bdepends=(go)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/jesseduffield/${pkgname}/archive/v${pkgver}.tar.gz")
|
||||
sha512sums=("d4802b16432b26220c3ff1576eafbca1b095a82c703e2cb46f72cea6d255caa52a9c428aa98c5ff794e56fdeac1f5fc85f491717b9caf28d8db24d6c50eb103b")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
export CGO_CPPFLAGS="${CPPFLAGS}"
|
||||
export CGO_CFLAGS="${CFLAGS}"
|
||||
export CGO_CXXFLAGS="${CXXFLAGS}"
|
||||
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw -x -v"
|
||||
|
||||
go build \
|
||||
-ldflags "\
|
||||
-linkmode external \
|
||||
-extldflags '${LDFLAGS}' \
|
||||
-X main.date=$(date --date=@${SOURCE_DATE_EPOCH} -u +%Y-%m-%dT%H:%M:%SZ) \
|
||||
-X main.buildSource=binaryRelease \
|
||||
-X main.version=${pkgver} \
|
||||
-X main.commit=v${pkgver} \
|
||||
"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
install -Dm 755 lazygit -t "${pkgdir}/usr/bin"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
Reference in New Issue
Block a user