pkgname=shared-mime-info pkgver=2.4 pkgrel=1 pkgdesc="Freedesktop.org Shared MIME Info" arch=('x86_64') url="https://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec/" license=('GPL-2.0-or-later') depends=('libxml2' 'glib2' 'glibc' 'gcc-libs') makedepends=('gettext' 'xmlto' 'docbook-xsl' 'meson') options=('!makeflags') install=${pkgname}.install source=(https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz update-mime-database.hook) sha256sums=(531291d0387eb94e16e775d7e73788d06d2b2fdd8cd2ac6b6b15287593b6a2de f08efbcbac9d2bd18a805b8dcf3ed06d7763b97eca5935aa64d65593774b6501) build() { cd ${pkgname}-${pkgver} local meson_args=( -Dupdate-mimedb=true ) ${meson_options} ${meson_args[@]} ${meson_build} } package() { cd ${pkgname}-${pkgver} ${meson_install} ${pkgdir} install -vDm644 ${srcdir}/update-mime-database.hook ${pkgdir}/usr/share/libalpm/hooks/30-update-mime-database.hook }