pkgname=libmatecomponent
pkgver=1.1.0
pkgrel=1
pkgdesc="A set of language and system independant CORBA interfaces for creating reusable components"
arch=('i686' 'x86_64')
license=('GPL' 'LGPL')
depends=('mate-corba' 'libxml2' 'glib2')
makedepends=('intltool' 'pkgconfig' 'flex')
groups=('mate')
options=('!emptydirs' '!libtool')
backup=('etc/matecomponent-activation/matecomponent-activation-config.xml')
url="http://www.gnome.org"
source=(matecomponent-activation-config.xml)
install=libmatecomponent.install
sha256sums=('c1fc9b102f2635b0d4be39728d19737c1013b61395d0bd0c508fc6ad6b61643e')

build() {
	cd "${srcdir}/../../../"
    ./autogen.sh \
        --prefix=/usr \
        --sysconfdir=/etc \
        --localstatedir=/var \
        --disable-static \
        --libexecdir=/usr/lib/matecomponent || return 1
    make || return 1
}

package() {
	cd "${srcdir}/../../../"
    make DESTDIR="${pkgdir}" install
    install -m644 "${srcdir}/matecomponent-activation-config.xml" "${pkgdir}/etc/matecomponent-activation/"
}
