libgusb 0.1.6 + support of gintrospection

colord 1.0.6
This commit is contained in:
AlmAck 2014-03-01 23:17:32 +01:00
parent 2f19040fce
commit bedd3158b0
4 changed files with 55 additions and 19 deletions

View File

@ -5,17 +5,27 @@
# contributor: Ionut Biru <ibiru@archlinux.org>
pkgname=colord
pkgver=0.1.28
pkgver=1.0.6
pkgrel=1
pkgdesc="System service easily manage, install and generate color profiles to manage input and output devices"
pkgdesc="System daemon for managing color devices"
arch=('x86_64')
url="http://www.freedesktop.org/software/colord"
license=('GPL2')
depends=('lcms2' 'polkit' 'shared-color-profiles' 'sqlite3' 'systemd' 'libgusb')
makedepends=('intltool' 'gobject-introspection' 'vala' 'docbook-xsl')
source=($url/releases/$pkgname-$pkgver.tar.xz)
options=('!libtool')
sha1sums=('d53167727ab0f1014ded86675ac8b518c188a88b')
depends=('lcms2' 'polkit' 'shared-color-profiles' 'sqlite3' 'systemd' 'libgusb' 'dbus')
makedepends=('intltool' 'gobject-introspection' 'vala' 'docbook-xsl' 'sane' 'bash-completion')
optdepends=('sane: UseSANE support [/etc/colord.conf]')
install=colord.install
backup=(etc/colord.conf)
source=($url/releases/$pkgname-$pkgver.tar.xz{,.asc}
udev-systemd.patch)
sha1sums=('b3ad9d1cd90ff0ea4d955b253dc0491d851c2778'
'SKIP'
'3b467b9674f767c804943d191beaf6bd1ba3a606')
prepare() {
cd $pkgname-$pkgver
patch -Np1 -i ../udev-systemd.patch
}
build() {
cd "$pkgname-$pkgver"
@ -23,16 +33,15 @@ build() {
# put udev files in /usr/lib
sed -i "/slashlibdir=/s#/lib#/usr/lib#" configure
./configure --prefix=/usr \
--sysconfdir=/etc --libexecdir=/usr/lib/colord \
--localstatedir=/var --disable-static \
--with-systemdsystemunitdir=/usr/lib/systemd/system
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--libexecdir=/usr/lib/$pkgname --disable-static \
--with-systemdsystemunitdir=/usr/lib/systemd/system \
--enable-vala --enable-sane --disable-volume-search
make
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install \
bashcompletiondir=/usr/share/bash-completion/completions
make DESTDIR="$pkgdir" install
}

11
colord/colord.install Normal file
View File

@ -0,0 +1,11 @@
post_install() {
glib-compile-schemas /usr/share/glib-2.0/schemas
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}

17
colord/udev-systemd.patch Normal file
View File

@ -0,0 +1,17 @@
Description: Migrate from usb_id and usb_db to udev builtins usb_id and hwdb.
Author: Dmitrijs Ledkovs <dmitrij.ledkov@ubuntu.com>
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1200185
--- colord-1.0.1.orig/rules/69-cd-sensors.rules.in
+++ colord-1.0.1/rules/69-cd-sensors.rules.in
@@ -86,8 +86,8 @@ ATTRS{idVendor}=="273f", ATTRS{idProduct
# color calibration device
ENV{COLORD_SENSOR_KIND}=="*?", ENV{COLOR_MEASUREMENT_DEVICE}="1"
-ENV{COLORD_SENSOR_KIND}=="*?", ENV{ID_MODEL}=="", IMPORT{program}="usb_id --export %p"
-ENV{COLORD_SENSOR_KIND}=="*?", ENV{ID_MODEL_FROM_DATABASE}=="", IMPORT{program}="usb-db %p"
+ENV{COLORD_SENSOR_KIND}=="*?", ENV{ID_MODEL}=="", IMPORT{builtin}="usb_id"
+ENV{COLORD_SENSOR_KIND}=="*?", ENV{ID_MODEL_FROM_DATABASE}=="", IMPORT{builtin}="hwdb --subsystem=usb"
# Allow the daemon to access the color devices
ENV{COLORD_SENSOR_KIND}=="*?", GROUP="@daemon_user@"

View File

@ -1,20 +1,19 @@
#
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer abveritas[at]chakra-project[dot]org>
# contributor: Ionut Biru <ibiru@archlinux.org>
# maintainer almack[at]chakra-project[dot]org>
pkgname=libgusb
pkgver=0.1.3
pkgver=0.1.6
pkgrel=1
pkgdesc="GLib wrapper around libusb1"
arch=('x86_64')
url="https://gitorious.org/gusb/"
license=('LGPL2.1')
depends=('udev')
depends=('udev' 'libusbx')
makedepends=('gobject-introspection')
source=(http://people.freedesktop.org/~hughsient/releases/$pkgname-$pkgver.tar.xz)
options=('!libtool')
sha1sums=('6fc81a3b1aad42bc8041c9c9c26a029df57c2870')
sha1sums=('ecd6d1254d456f2046ce6110607b1e2c7921c377')
build() {
cd "$srcdir/$pkgname-$pkgver"