template 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Template file for 'libosinfo'
  2. pkgname=libosinfo
  3. version=1.8.0
  4. revision=1
  5. wrksrc="${pkgname}-v${version}"
  6. build_style=meson
  7. build_helper="gir"
  8. configure_args="-Denable-introspection=$(vopt_if gir enabled disabled)
  9. -Denable-vala=$(vopt_if vala enabled disabled)
  10. -Denable-gtk-doc=$(vopt_if gtk_doc true false)"
  11. hostmakedepends="glib-devel intltool pkg-config wget hwids
  12. $(vopt_if gtk_doc gtk-doc)
  13. $(vopt_if vala vala)"
  14. makedepends="libxslt-devel libglib-devel libsoup-devel"
  15. depends="osinfo-db hwids"
  16. short_desc="GObject based library API for managing info about operating systems"
  17. maintainer="Orphaned <orphan@voidlinux.org>"
  18. license="GPL-2.0-or-later, LGPL-2.1-or-later"
  19. homepage="https://libosinfo.org/"
  20. changelog="https://gitlab.com/libosinfo/libosinfo/raw/master/NEWS"
  21. distfiles="https://gitlab.com/libosinfo/libosinfo/-/archive/v${version}/libosinfo-v${version}.tar.gz"
  22. checksum=da54dc1ef77e87b78aab0488cf4da3ae242cfb92555b106cd9a0fe976e5d4e25
  23. build_options="gtk_doc gir vala"
  24. desc_option_gtk_doc="Build GTK API docs"
  25. build_options_default="gir vala"
  26. if [ -z "$CROSS_BUILD" ] ; then
  27. build_options_default+=" gtk_doc"
  28. fi
  29. # Liberation
  30. pre_patch() {
  31. # Remove docs having references to non-FSDG distros/OS
  32. rm -rfv docs
  33. # Remove NEWS having references to non-FSDG distros/OS
  34. rm -v NEWS
  35. # Remove non-FSDG referencing stuff
  36. rm -rfv {tests,ci,.gitlab-ci.yml}
  37. }
  38. libosinfo-devel_package() {
  39. depends="libglib-devel ${sourcepkg}-${version}_${revision}"
  40. short_desc+=" - development files"
  41. pkg_install() {
  42. vmove "usr/lib/*.so"
  43. vmove usr/include
  44. vmove usr/lib/pkgconfig
  45. if [ "$build_option_docs" ]; then
  46. vmove usr/share/gtk-doc
  47. fi
  48. if [ "$build_option_gir" ]; then
  49. vmove usr/share/gir-1.0
  50. fi
  51. if [ "$build_option_vala" ]; then
  52. vmove usr/share/vala
  53. fi
  54. }
  55. }