refactor: sshfsc-git → sshfsc (no-suffix tag-build)
Build and publish packages / build-and-publish (push) Successful in 1m29s
Build and publish packages / build-and-publish (push) Successful in 1m29s
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
# 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.r11.g4306170
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user