aboutsummaryrefslogtreecommitdiffstats
path: root/testing/colord/APKBUILD
blob: 7b0f3f0bb1d9f6e8d594f6d8cc70ba81ca587052 (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=colord
pkgver=1.0.6
pkgrel=0
pkgdesc="http://www.freedesktop.org/software/colord/releases/colord-1.0.6.tar.xz"
url="http://www.freedesktop.org/software/colord"
arch="all"
license="GPL2"
depends=""
depends_dev="dconf-dev dbus-dev lcms2-dev gobject-introspection-dev libgusb-dev
	sqlite-dev polkit-dev"
makedepends="$depends_dev intltool bash-completion"
install=""
subpackages="$pkgname-dev"
source="http://www.freedesktop.org/software/colord/releases/colord-$pkgver.tar.xz"

_builddir="$srcdir"/colord-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-systemd \
		--disable-systemd-login \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la \
		"$pkgdir"/usr/lib/*/*.la
}

md5sums="9bd8a1f117742c31d195a09092ca3066  colord-1.0.6.tar.xz"
sha256sums="a40bbceaa3d3b1d6fd2777b181bf641b4eb49ad249796823585136c146ad7e8e  colord-1.0.6.tar.xz"
sha512sums="d4b188c4ffa12a4b4616e7e5fd9758c09c5743d7802a782f03f2e5767547fb6155a55c42a2344ae1d4aeab1cb3ccc81c3ad07e9b0cf087120b3564e9ebc28aa1  colord-1.0.6.tar.xz"