hughsie / appstream-glib

This library provides objects and helper methods to help reading and writing AppStream metadata.
GNU Lesser General Public License v2.1
64 stars 103 forks source link

Possible to compile it without rpm? flag to use + documentation? #428

Open rubyFeedback opened 2 years ago

rubyFeedback commented 2 years ago

Is it possible to build it without rpm? I don't use a rpm-based system but gimp seems to want to use appstream-glib.

If it is possible to compile it without rpm, perhaps the flag could be mentioned in the main README? That would be quite helpful. Right now I can not get gimp to compile because of appstream-glib.

hughsie commented 2 years ago

-Drpm=false ?

FabioLolix commented 2 years ago

On Arch Linux is builded without rpm and with documentation https://github.com/archlinux/svntogit-packages/blob/packages/appstream-glib/trunk/PKGBUILD

  arch-meson $pkgname build \
    -D alpm=true \
    -D gtk-doc=true \
    -D rpm=false

arch-meson is a wrapper to

$ cat /usr/bin/arch-meson
#!/bin/bash -ex
# Highly opinionated wrapper for Arch Linux packaging

exec meson setup \
  --prefix        /usr \
  --libexecdir    lib \
  --sbindir       bin \
  --buildtype     plain \
  --auto-features enabled \
  --wrap-mode     nodownload \
  -D              b_lto=true \
  -D              b_pie=true \
  "$@"