#!/bin/bash

# fill it, edit "control" file  too
pkgname=libmatecanvas
pkgver=1.1.0
pkgrel=1
pkgdesc="The MATE Canvas library"
depends=('libart-2.0-2' 'libatk1.0-0' 'libc6' 'libcairo2' 'libfontconfig1'
         'libfreetype6' 'libgail18' 'libgdk-pixbuf2.0-0' 'libglade2-0'
         'libglib2.0-0' 'libgtk2.0-0' 'libpango1.0-0' 'libxml2' 'libmate')
makedepends=('libgail-dev' 'libgtk2.0-dev' 'libart-2.0-dev' 'libglade2-dev')

# editar esta funcion!
build() {
	cd $pkgsrc
	# descomprimir
	tar xvzf download
	# entramos a la carpeta
	cd ${pkgname}

	./configure --prefix=/usr --disable-static \
		--enable-glade || return 1
	make || return 1
	make DESTDIR="${pkgdir}" install
}

# esto incluye la parte que se repite en la mayoria de los builds
. /usr/share/mate-doc-utils/mate-debian.sh
