All checks were successful
CI / test (push) Successful in 9m41s
grep for the version bump missed this file since it has no extension. makepkg pulls sources from the tag named after pkgver, so Arch builds were still fetching v0.2.6 despite main/the v0.2.7 tag being current. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
34 lines
930 B
Bash
34 lines
930 B
Bash
pkgname=vcom
|
|
pkgver=0.2.7
|
|
pkgrel=1
|
|
pkgdesc="Terminal file manager inspired by Midnight Commander"
|
|
arch=("x86_64" "aarch64")
|
|
url="https://github.com/vrubelroman/vcom"
|
|
license=("MIT")
|
|
depends=("glibc" "ueberzugpp")
|
|
makedepends=("go")
|
|
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
|
|
sha256sums=("SKIP")
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
export CGO_ENABLED=0
|
|
export GOFLAGS="-mod=vendor -trimpath"
|
|
go build -ldflags="-s -w" -o "target/release/vcom" ./cmd/vcom
|
|
}
|
|
|
|
check() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
export CGO_ENABLED=0
|
|
export GOFLAGS="-mod=vendor"
|
|
go test ./...
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
install -Dm755 "target/release/vcom" "$pkgdir/usr/bin/vcom"
|
|
install -Dm644 "README.md" "$pkgdir/usr/share/doc/vcom/README.md"
|
|
install -Dm644 "vcom.toml" "$pkgdir/usr/share/doc/vcom/vcom.toml"
|
|
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/vcom/LICENSE"
|
|
}
|