summaryrefslogblamecommitdiff
path: root/user/shared-mime-info/APKBUILD
blob: 0e670e51f82c3faaa6081e795882831c85e851a7 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                 
          



                                                            
                                                           
                  
          
                                                                          
                                        

                                           
                                                                                                                                 

         

                                 


         
                            


           
                                                

 
                                                                                                                                                                          
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=shared-mime-info
pkgver=2.0
pkgrel=0
pkgdesc="MIME database for desktop software"
url="https://freedesktop.org/wiki/Software/shared-mime-info"
arch="all"
options="!check"  # Requires unpackaged dependency xdgmime.
license="GPL-2.0+"
depends=""
makedepends="glib-dev itstool libxml2-dev libxml2-utils meson ninja xmlto"
subpackages="$pkgname-doc $pkgname-lang"
install="$pkgname.post-deinstall"
triggers="$pkgname.trigger=/usr/share/mime"
source="https://gitlab.freedesktop.org/xdg/shared-mime-info/uploads/0440063a2e6823a4b1a6fb2f2af8350f/shared-mime-info-2.0.tar.xz"

build() {
	meson -Dprefix=/usr build
	ninja -C build
}

check() {
	ninja -C build check
}

package() {
	DESTDIR="$pkgdir" ninja -C build install
}

sha512sums="f4a1ea9a408ffcff325e57585dec5862405e9fd6c79e444048039f3061676501c40168cecf8935d002644a702a21f08f0f7c680ef6a65fdf188e0d892f3cc085  shared-mime-info-2.0.tar.xz"