# Maintainer: Alexander Epaneshnikov <alex19ep@archlinux.org>
# Contributor: Brad Fanella <cesura@archlinux.org>
# Contributor: Martin Wimpress <code@flexion.org>

pkgname=python-caja
pkgver=1.28.0
pkgrel=3
pkgdesc="Python binding for Caja, to allow Caja property page and menu item extensions to be written in Python"
url="https://mate-desktop.org"
arch=('x86_64')
license=('GPL')
depends=('caja' 'python-gobject')
makedepends=('intltool')
source=("https://pub.mate-desktop.org/releases/${pkgver%.*}/python-caja-${pkgver}.tar.xz")
sha256sums=('b056c239dbdfe33ed0cc8431fb3500a938f787b59e875f5ff93578ba66f680d6')

build() {
    	cd "python-caja-${pkgver}"
	./configure \
	            --prefix=/usr

	#https://bugzilla.gnome.org/show_bug.cgi?id=656231
	sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool

 make
}

package() {
	cd "python-caja-${pkgver}"
	make DESTDIR="${pkgdir}" install
}
