2022-09-30 18:38:22 +03:00
|
|
|
distributable:
|
|
|
|
url: https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/{{version.raw}}/shared-mime-info-{{version.raw}}.tar.bz2
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
2023-05-01 20:14:59 +03:00
|
|
|
gitlab: gitlab.freedesktop.org:xdg/shared-mime-info/tags
|
2022-09-30 18:38:22 +03:00
|
|
|
|
|
|
|
dependencies:
|
|
|
|
gnome.org/glib: 2
|
|
|
|
gnu.org/gettext: ^0.21
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
freedesktop.org/pkg-config: ^0.29
|
|
|
|
mesonbuild.com: ^0.63
|
|
|
|
ninja-build.org: 1
|
|
|
|
gnome.org/libxml2: 2
|
|
|
|
working-directory: build
|
2023-10-07 19:51:32 +03:00
|
|
|
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
|
2022-09-30 18:38:22 +03:00
|
|
|
|
|
|
|
#TODO you need a library to use this db
|
|
|
|
#see: https://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec/
|
|
|
|
test: |
|
|
|
|
test -f "{{prefix}}"/share/mime/packages/freedesktop.org.xml
|
2022-11-18 21:43:48 +03:00
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/update-mime-database
|