Update to v0.15.4

This commit is contained in:
atinylittleshell 2025-01-21 00:59:09 +00:00
parent d30aa59687
commit d1ad85546a
2 changed files with 21 additions and 7 deletions

View file

@ -1,6 +1,6 @@
pkgbase = gsh
pkgdesc = A modern, POSIX-compatible, generative shell
pkgver = 0.15.3
pkgver = 0.15.4
pkgrel = 1
url = https://github.com/atinylittleshell/gsh
arch = aarch64
@ -11,7 +11,7 @@ pkgbase = gsh
conflicts = gsh
provides = gsh
source = https://github.com/atinylittleshell/gsh/releases/download/v0.15.3/gsh-0.15.3.tar.gz
sha256sums = 9e295589d6b98f7247de23bb9314a30ce93e71e9de36b878ccf3550fb0eed654
source = https://github.com/atinylittleshell/gsh/releases/download/v0.15.4/gsh-0.15.4.tar.gz
sha256sums = 496a167525fa3d4ddd6ec50e5cf580289988be39cd3d2eb5aadb9d73d2a25fa5
pkgname = gsh

View file

@ -3,7 +3,7 @@
# Maintainer: Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>
pkgname='gsh'
pkgver=0.15.3
pkgver=0.15.4
pkgrel=1
pkgdesc='A modern, POSIX-compatible, generative shell'
url='https://github.com/atinylittleshell/gsh'
@ -12,10 +12,24 @@ license=('GPL-3.0-or-later')
provides=('gsh')
conflicts=('gsh')
makedepends=('go' 'git')
source=("${pkgname}_${pkgver}.tar.gz::https://github.com/atinylittleshell/gsh/releases/download/v0.15.3/gsh-0.15.3.tar.gz")
sha256sums=('9e295589d6b98f7247de23bb9314a30ce93e71e9de36b878ccf3550fb0eed654')
source=("${pkgname}_${pkgver}.tar.gz::https://github.com/atinylittleshell/gsh/releases/download/v0.15.4/gsh-0.15.4.tar.gz")
sha256sums=('496a167525fa3d4ddd6ec50e5cf580289988be39cd3d2eb5aadb9d73d2a25fa5')
prepare() {
cd "${srcdir}/${_pkgsrc}"
go mod download
}
build() {
cd "${srcdir}/${_pkgsrc}"
export CGO_ENABLED=0
export GOFLAGS="-buildmode=pie \
-trimpath \
-ldflags=\"-linkmode=external -X main.BUILD_VERSION=${pkgver}\" \
-mod=readonly \
-modcacherw"
make build
}
package() {
cd "${pkgname}_${pkgver}"
cd "${srcdir}/${_pkgsrc}"
# bin
install -Dsm755 "./gsh" "${pkgdir}/usr/bin/gsh"