aboutsummaryrefslogtreecommitdiffstats
path: root/main/shared-mime-info/APKBUILD
blob: 450aa73a046b16c4ebde24d0f74a6cec6e5612ca (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
31
32
33
34
35
36
37
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=shared-mime-info
pkgver=1.9
pkgrel=0
pkgdesc="Freedesktop.org Shared MIME Info"
url="http://freedesktop.org/Software/shared-mime-info"
arch="all"
license="GPL"
#options="!check"  # No test suite.
makedepends="libxml2-dev libxml2-utils glib-dev intltool"
depends=
install="$pkgname.post-deinstall"
triggers="$pkgname.trigger=/usr/share/mime"
subpackages="$pkgname-doc $pkgname-lang"
source="http://freedesktop.org/~hadess/$pkgname-$pkgver.tar.xz"

build() {
	cd "$builddir"
	ac_cv_func_fdatasync=no ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-default-make-check \
		--disable-update-mimedb
	make -j1
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make -j1 DESTDIR="$pkgdir" install
}
sha512sums="b4ab7bfec4cbc827fe0d459040967afb714c073ad27ec9ad46e51ebc49c56b2a85501a3c8c5c199b4cb5359fc46580d6f2dfdb49da1670216d5d2b56758de491  shared-mime-info-1.9.tar.xz"