let’s try our own shared-mime-info (#167)

* let’s try our own shared-mime-info
* infuser:slim needs more deps to be specified
This commit is contained in:
Max Howell 2022-09-30 11:38:22 -04:00 committed by GitHub
parent 2541306eff
commit a59e2e9f00
3 changed files with 34 additions and 3 deletions

View file

@ -58,8 +58,6 @@ jobs:
case ${{ matrix.os }} in
ubuntu-latest)
apt update
#FIXME needed for gdk-pixbuf
apt --yes install shared-mime-info
apt --yes install libc-dev libstdc++-8-dev libgcc-8-dev bzip2 xz-utils patchelf file
;;
macos-11)
@ -134,7 +132,7 @@ jobs:
- run: |
apt-get update
apt --yes install libc-dev libstdc++-8-dev libgcc-8-dev bzip2 xz-utils patchelf file shared-mime-info
apt --yes install libc-dev libstdc++-8-dev libgcc-8-dev bzip2 xz-utils patchelf file
if: ${{ matrix.container != '' }}
- uses: teaxyz/setup@v0

View file

@ -0,0 +1,29 @@
distributable:
url: https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/{{version.raw}}/shared-mime-info-{{version.raw}}.tar.bz2
strip-components: 1
versions:
- 2.2
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
tea.xyz/gx/cc: c99
working-directory: build
script: |
meson .. --prefix={{prefix}} --buildtype=release
ninja
ninja install
{{prefix}}/bin/update-mime-database {{prefix}}/share/mime
#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

View file

@ -1,6 +1,10 @@
#!/usr/bin/env -S tea -E
/*---
dependencies:
gnu.org/tar: 1
tukaani.org/xz: 5
sourceware.org/bzip2: 1
args:
- deno
- run