#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=mate-user-share
pkgver=1.24.0
_majorver=`echo $pkgver | sed "s/\(.*\)\.\(.*\)/\1/"`
pkgrel=1slint
source=("http://pub.mate-desktop.org/releases/${_majorver}/mate-user-share-${pkgver}.tar.xz")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
options=('noautodotnew')

# Note: --disbale-bluetooth because  else during ./configure:
#configure: error: Package requirements (mate-bluetooth-1.0 >= 1.2.0) were not met:
#
#No package 'mate-bluetooth-1.0' found
#
# This feature seems an abandonware, cf.:
# https://github.com/mate-desktop-legacy-archive/mate-bluetooth
doinst() {
# compile schemas
if [ -x usr/bin/glib-compile-schemas ]; then
	usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas
fi
}

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"mate-user-share (User level public file sharing via WebDAV or ObexFTP)"
"mate-user-share is a small package that allows easy user-level file"
"sharing via WebDAV or ObexFTP. The shared files are announced on the"
"network by Avahi."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--disable-static \
		--with-x \
		--disable-schemas-compile \
		--build=$arch-slackware-linux
	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg
} 
