mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
mergerfs: build from source snapshot, switch to vsed
This commit is contained in:
parent
178e548ed9
commit
dc22a08bcb
1 changed files with 7 additions and 6 deletions
|
@ -8,15 +8,16 @@ short_desc="FUSE union filesystem"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="ISC"
|
license="ISC"
|
||||||
homepage="https://github.com/trapexit/mergerfs"
|
homepage="https://github.com/trapexit/mergerfs"
|
||||||
distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}.tar.gz"
|
distfiles="${homepage}/archive/${version}.tar.gz"
|
||||||
checksum=b33a2cfd933ee03a799c145cca70595290648eb8d7cde9459318afb709fff19d
|
checksum=f16f7c90d9db35b9f8fadbb529c4bf0f7d65d18fd2e7443a662cbfa7a8dbd4f9
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
sed -i 's|^CFLAGS[[:blank:]]*=|override CFLAGS +=|g' Makefile
|
vsed -i 's|^CXXFLAGS[[:blank:]]*=|override CXXFLAGS +=|g' Makefile
|
||||||
sed -i 's|^LDFLAGS[[:blank:]]*=|override LDFLAGS +=|g' Makefile
|
vsed -i 's|^LDFLAGS[[:blank:]]*=|override LDFLAGS +=|g' Makefile
|
||||||
|
|
||||||
echo "#pragma once" > src/version.hpp
|
# we build from source, spoof release tarball
|
||||||
echo "static const char MERGERFS_VERSION[] = \"${version}\";" >> src/version.hpp
|
echo "$version" > VERSION
|
||||||
|
./tools/update-version
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue