summaryrefslogtreecommitdiff
path: root/user/shared-mime-info/APKBUILD
blob: 902dfa7f482556657d13ae28ad3d5fe636adc130 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=shared-mime-info
pkgver=2.2
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/${pkgname}/-/archive/${pkgver}/${pkgname}-${pkgver}.tar.bz2"

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

check() {
	ninja -C build check
}

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

sha512sums="e32e78435b6bbcdd5abcd1b7708a715d14310f920742e762ce1d4a4f27c1215dbd6493f816d3bf8cf32cf8635a4cee031cf7ea7bad56c4034302273f25da1065  shared-mime-info-2.2.tar.bz2"