# Contributor: Kiyoshi Aman <adelie@aerdan.vulpine.house>
# Maintainer: Kiyoshi Aman <adelie@aerdan.vulpine.house>
pkgname=mate-user-share
pkgver=1.24.0
pkgrel=0
pkgdesc="Inter-user file sharing utilities for the MATE desktop environment"
url="https://mate-desktop.org"
arch="all"
license="GPL-2.0+"
depends=""
makedepends="apache-httpd-dev caja-dev dbus-glib-dev gtk+3.0-dev intltool
	itstool libcanberra-dev libnotify-dev libxml2-utils"
subpackages="$pkgname-doc $pkgname-lang"
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/mate-user-share-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-httpd=/usr/sbin/httpd \
		--with-modules-dir=/usr/libexec/apache2
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="15ede8754bf95ac78844cd9645a43d2deb8419dd550aee5263936d710cd13ce7f4a68cfd53e589c2dd37f87f59c9e8153f8abac711a3a7f88a2e2789dbd4f664  mate-user-share-1.24.0.tar.xz"