#Maintainer: Didier Spaier <didier~at~slint~dot~fr>

pkgname=slint-misc
pkgver=14.2.1
pkgrel=17slint
arch=noarch
source=($pkgname.tar.xz)
options=('noautodotnew' 'nosrcpack')

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"slint-misc (miscellaneous Slint stuff)"
"This package provide default mime settings, wallpapers, scripts"
"orca-on and orca-off to enable or disable orca for a regular user,"
"session-chooser & setsession to set the desktop session for a regular"
"user, login-chooser to choose the login manager to use, with speech or"
"not, show-kde-apps and hide-kde-apps to include them or not in the"
"menus of all graphical environments beyond KDE, and kernel-upgrade to"
"upgrade the kernel(s) shipped in Slint when a new version is provided."
)
build() {
	cp -r $startdir/src/$pkgname/* $startdir/pkg/
    chmod -R 755 $startdir/pkg/usr/{bin,sbin}/
    # Provide wallpapers for Xfce without modifying its packages
    mkdir -p $startdir/pkg/usr/share/xfce4
    (
    cd $startdir/pkg/usr/share/xfce4
    ln -sf /usr/share/wallpapers/common/ wallpapers
    )
}

doinst() {
# compile schemas
if [ -x usr/bin/glib-compile-schemas ]; then
	usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas > /dev/null 2>&1
fi
}
