2023-05-06 02:04:05 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/trapexit/mergerfs/archive/refs/tags/{{ version }}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: trapexit/mergerfs
|
|
|
|
|
|
|
|
platforms: linux
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
git-scm.org: '*'
|
2023-10-03 18:23:56 +03:00
|
|
|
python.org: '>=3<3.12'
|
2024-01-30 23:39:31 +03:00
|
|
|
script:
|
2023-05-06 02:04:05 +03:00
|
|
|
# Set the version
|
2024-01-30 23:39:31 +03:00
|
|
|
- run: sed -i -e 's/^VERSION=.*/VERSION={{ version }}/' update-version
|
|
|
|
if: <2.39
|
|
|
|
working-directory: tools
|
|
|
|
- run: sed -i -e 's/^VERSION=.*/VERSION={{ version }}/' update-version
|
|
|
|
if: '>=2.39'
|
|
|
|
working-directory: buildtools
|
2023-05-06 02:04:05 +03:00
|
|
|
|
|
|
|
# Don't try to chown/chmod on install
|
2024-01-30 23:39:31 +03:00
|
|
|
- sed -i -e '/\(chown\|chmod\)/d' libfuse/Makefile
|
2023-05-06 02:04:05 +03:00
|
|
|
|
2024-01-30 23:39:31 +03:00
|
|
|
- make --jobs {{ hw.concurrency }}
|
|
|
|
- make install DESTDIR="{{prefix}}" PREFIX=""
|
2023-07-16 07:21:29 +03:00
|
|
|
env:
|
|
|
|
CFLAGS: -Wno-implicit-function-declaration
|
2024-01-30 23:39:31 +03:00
|
|
|
CC: clang
|
|
|
|
CXX: clang++
|
2023-05-06 02:04:05 +03:00
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/mergerfs
|
|
|
|
- bin/mergerfs-fusermount
|
|
|
|
- sbin/mount.mergerfs
|
|
|
|
|
|
|
|
# FIXME: Maybe? Complicated to test something that mounts filesystems...
|
2024-01-30 23:39:31 +03:00
|
|
|
test: mergerfs --version | grep "{{ version }}"
|