updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / mate-conf / PKGBUILD
blob8bd3c12a0cd8b5a91e68a0380f33b8c9d6356ffa
1 pkgname=mate-conf
2 pkgver=2011.12.16
3 pkgrel=1
4 pkgdesc="A configuration database system"
5 arch=(i686 x86_64)
6 license=('LGPL')
7 depends=('mate-corba' 'libxml2' 'polkit' 'libldap' 'dbus-glib' 'gtk2')
8 makedepends=('pkgconfig' 'intltool' 'gtk-doc' 'gobject-introspection')
9 groups=('mate')
10 options=('!libtool')
11 install=mate-conf.install
12 url="http://matsusoft.com.ar/projects/mate/"
13 source=(http://matsusoft.com.ar/projects/mate/files/${pkgname}/${pkgname}-${pkgver}.tar.xz
14         mateconf-merge-schema
15         mateconfpkg)
16 sha256sums=('c45dec64925527331502535800918eb363e23d3976058b8ff0b93a43038b6eeb'
17             '78ccdb9c963400694c944ee193b2fa135dcb39e0d9f1dc393fa659131d591076'
18             '2e06a02b5312ee7853be356c1b0131ce6e85fb2949c4aef54c1e795f27fdc1dd')
20 build() {
21     cd "${srcdir}"
22     # Python2 fix
23     sed -i '1s|#!/usr/bin/env python$|&2|' gsettings/gsettings-schema-convert
24     ./autogen.sh \
25         --prefix=/usr \
26         --sysconfdir=/etc \
27         --libexecdir=/usr/lib/MateConf \
28         --localstatedir=/var \
29         --disable-static \
30         --enable-defaults-service --enable-gsettings-backend=no || return 1
31     # --with-gtk=3.0
32     make || return 1
35 package() {
36     cd "${srcdir}"
38     make DESTDIR="${pkgdir}" install || return 1
39     install -m755 -d "${pkgdir}/etc/mateconf/mateconf.xml.system" || return 1
40     install -m755 "${srcdir}/mateconf-merge-schema" "${pkgdir}/usr/bin/" || return 1
41     install -d -m755 "${pkgdir}/usr/sbin"
42     install -m755 "${srcdir}/mateconfpkg" "${pkgdir}/usr/sbin/" || return 1