7b29471bd8
Package templates are sourced multiple times during the build process, which can lead to issues when defining variables like CFLAGS using `CFLAGS+=`, since the contents will be added multiple times. This can lead to a build command with `-static -static`, for example. Adding to CFLAGS inside functions is safe, since functions are run only once.
26 lines
774 B
Bash
26 lines
774 B
Bash
# Template file for 'fuse-sshfs'
|
|
pkgname=fuse-sshfs
|
|
version=3.7.0
|
|
revision=1
|
|
wrksrc="sshfs-${version}"
|
|
build_style=meson
|
|
configure_args="--sbindir=bin"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="fuse3-devel libglib-devel python3-docutils"
|
|
depends="openssh"
|
|
checkdepends="python3-pytest"
|
|
short_desc="FUSE client based on the SSH File Transfer Protocol"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://github.com/libfuse/sshfs"
|
|
distfiles="https://github.com/libfuse/sshfs/releases/download/sshfs-${version}/sshfs-${version}.tar.xz"
|
|
checksum=6e7e86831f3066b356e7f16e22f1b8a8f177fda05146f6a5eb821c2fd0541c34
|
|
|
|
case "${XBPS_TARGET_MACHINE}" in
|
|
i686|armv6l|armv7l)
|
|
CFLAGS="-D_FILE_OFFSET_BITS=64"
|
|
esac
|
|
|
|
do_check() {
|
|
python3 -m pytest
|
|
}
|