c6c0bf1552
Build and publish packages / build-and-publish (push) Successful in 47s
Initial sshfsc-git build (run #150, 2026-04-19) failed with 'go: command not found' — at that point the workflow did not yet install makedepends. Workflow now reads makedepends from PKGBUILD and installs them via pacman before makepkg, so a fresh trigger should succeed.
46 lines
1.1 KiB
Bash
46 lines
1.1 KiB
Bash
# ABOUTME: PKGBUILD for sshfsc — quick SSHFS mounter driven by ssh_config.
|
|
# ABOUTME: Builds from git source with automatic version detection.
|
|
|
|
# Maintainer: Dominik Kressler
|
|
|
|
pkgname=sshfsc-git
|
|
pkgver=0.1.0.r2.gba89562
|
|
pkgrel=2
|
|
pkgdesc="Quickly mount remote systems via SSHFS based on your ssh_config"
|
|
arch=('x86_64')
|
|
url="https://gitea.moonarch.de/nevaforget/sshfs_connect"
|
|
license=('MIT')
|
|
depends=(
|
|
'sshfs'
|
|
)
|
|
makedepends=(
|
|
'git'
|
|
'go'
|
|
)
|
|
provides=('sshfsc')
|
|
conflicts=('sshfsc')
|
|
source=("git+${url}.git")
|
|
sha256sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd "$srcdir/sshfs_connect"
|
|
git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./'
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/sshfs_connect"
|
|
export CGO_CPPFLAGS="${CPPFLAGS}"
|
|
export CGO_CFLAGS="${CFLAGS}"
|
|
export CGO_CXXFLAGS="${CXXFLAGS}"
|
|
export CGO_LDFLAGS="${LDFLAGS}"
|
|
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
|
|
go build -o sshfsc .
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/sshfs_connect"
|
|
install -Dm755 sshfsc "$pkgdir/usr/bin/sshfsc"
|
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
|
|
}
|