diff --git a/projects/freedesktop.org/shared-mime-info/package.yml b/projects/freedesktop.org/shared-mime-info/package.yml index d7fc90a2..4386d3d4 100644 --- a/projects/freedesktop.org/shared-mime-info/package.yml +++ b/projects/freedesktop.org/shared-mime-info/package.yml @@ -16,11 +16,23 @@ build: ninja-build.org: 1 gnome.org/libxml2: 2 working-directory: build - script: | - meson .. --prefix={{prefix}} --buildtype=release - ninja - ninja install - {{prefix}}/bin/update-mime-database {{prefix}}/share/mime + script: + # darwin doesn't have fdatasync like linux does, but it has an alias that + # gets detected wrongly. + - run: | + sed -i.bak -e '/fdatasync/d' meson.build + rm meson.build.bak + working-directory: .. + if: darwin + - meson .. --prefix={{prefix}} --buildtype=release + - ninja + - ninja install + - run: ./update-mime-database ../share/mime + working-directory: ${{prefix}}/bin + env: + CXXFLAGS: $CXXFLAGS -std=c++17 -Wno-reserved-user-defined-literal + linux: + LDFLAGS: $LDFLAGS -lstdc++fs #TODO you need a library to use this db #see: https://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec/