# Contributor: Kiyoshi Aman <adelie@aerdan.vulpine.house>
# Maintainer: Kiyoshi Aman <adelie@aerdan.vulpine.house>
pkgname=caja-dropbox
pkgver=1.24.0
pkgrel=0
pkgdesc="DropBox extension for Caja"
url="https://mate-desktop.org"
arch="all"
license="GPL-3.0+"
depends=""
makedepends="caja-dev py3-docutils py3-pygobject"
subpackages="$pkgname-doc"
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/caja-dropbox-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	rm "$pkgdir"/usr/lib/caja/extensions-2.0/libcaja-dropbox.a
}

sha512sums="64d699b4c3957d5996ef69936b4b2746641bc2db4efb7b23535febf5eed3ee767330927aeeda67747c0d72e0f052a2979ae2160ffaaf01e4fd82aff68a5f27bf  caja-dropbox-1.24.0.tar.xz"