Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 94 lines (71 sloc) 2.55 KB
#!/usr/bin/env beesh
# BEE_VERSION slick-greeter-1.5.4-2
# SRCURL[0]="https://github.com/linuxmint/slick-greeter/archive/${PKGVERSION}.tar.gz slick-greeter-${PKGVERSION}.tar.gz"
SRCURL[0]="https://beehive.molgen.mpg.de/800dabc37574cf3d636a9aa2ac572c24/slick-greeter-1.5.4.tar.gz"
# pfffft ...
# prevent call to python3 slick-greeter-check-hidpi which is basically 'echo "1"'
PATCHURL+=("https://beehive.molgen.mpg.de/1860629294548b4b438adb7c2b33465d/slick-greeter-disable-check_hidpi.patch")
build_in_sourcedir # or the 'badges' won't be installed
# mee_extract() {
# bee_extract "${@}"
# }
mee_patch() {
bee_patch "${@}"
# our session descriptors are way large ...
sed -i -e '/BOX_WIDTH/ s/BOX_WIDTH = 8;/BOX_WIDTH = 11;/' ${S}/src/greeter-list.vala
# we also think differently if it comes to the name of the default session :)
sed -i -e '/sessions.append ("cinnamon");/ i \ sessions.append ("00-default");' ${S}/src/slick-greeter.vala
}
mee_configure() {
bee_configure \
--disable-nls
}
# mee_build() {
# bee_build
# }
# mee_install() {
# bee_install
# }
mee_install_post() {
###########################
# write our default config
local slickgreeterconf=/etc/lightdm/slick-greeter.conf
mkdir -vp ${D}/etc/lightdm
cat <<CONF > ${D}/${slickgreeterconf}
# config options are listed here:
#
# https://github.com/linuxmint/slick-greeter/blob/master/README.md
#
draw-user-backgrounds=false
play-ready-sound=false
# accessibility doesn't really help, and would require 'https://launchpad.net/onboard'
show-a11y=false
# since german is hammered into /etc/local/X11_xorg.conf, we can skip this
# (also 'de nodeadkeys' looks silly).
show-keyboard=false
# well, no nifty background right now
# background=/tmp/test_bg.png
CONF
chmod 644 ${D}/${slickgreeterconf}
####################################################
# make the mariux session names known to the badges
local sessionfile
local badgedir=${D}/usr/share/slick-greeter/badges
for sessionfile in /usr/share/xsessions/*.desktop ; do
local dsb=$(basename ${sessionfile} .desktop)
test -e ${badgedir}/${dsb}.png && continue
test -e ${badgedir}/${dsb}.svg && continue
case ${dsb} in
xfce*)
ln -v -s xfce.svg ${badgedir}/${dsb}.svg
;;
*)
ln -v -s usr.png ${badgedir}/${dsb}.png
;;
esac
done
# clean up
cd ${D}
rm -v usr/bin/slick-greeter-check-hidpi
rm -v usr/bin/slick-greeter-set-keyboard-layout
}