You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.3 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=shared-mime-info
  7. PKG_VERSION:=2.1
  8. PKG_RELEASE:=2
  9. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  10. PKG_LICENSE:=GPL-2.0-or-later
  11. PKG_LICENSE_FILES:=COPYING
  12. PKG_SOURCE:=shared-mime-info-$(PKG_VERSION).tar.bz2
  13. PKG_SOURCE_URL:=https://gitlab.freedesktop.org/xdg/$(PKG_NAME)/-/archive/$(PKG_VERSION)
  14. PKG_HASH:=37df6475da31a8b5fc63a54ba0770a3eefa0a708b778cb6366dccee96393cb60
  15. include $(INCLUDE_DIR)/package.mk
  16. include $(INCLUDE_DIR)/nls.mk
  17. include $(INCLUDE_DIR)/meson.mk
  18. define Package/shared-mime-info
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. DEPENDS:=+glib2 +libxml2
  22. TITLE:=MIME-type information
  23. URL:=https://freedesktop.org/wiki/Software/shared-mime-info/
  24. endef
  25. define Package/shared-mime-info/description
  26. The shared-mime-info package contains a database of MIME types and their file extensions.
  27. endef
  28. define Package/shared-mime-info/install
  29. $(INSTALL_DIR) $(1)/usr/bin/
  30. $(CP) \
  31. $(PKG_INSTALL_DIR)/usr/bin/* \
  32. $(1)/usr/bin/
  33. $(INSTALL_DIR) $(1)/usr/share/
  34. $(CP) \
  35. $(PKG_INSTALL_DIR)/usr/share/* \
  36. $(1)/usr/share/
  37. endef
  38. define Package/shared-mime-info/postinst
  39. #!/bin/sh
  40. update-mime-database /usr/share/mime/
  41. endef
  42. $(eval $(call BuildPackage,shared-mime-info))