28 lines
1 KiB
Text
28 lines
1 KiB
Text
# INSTALL
|
|
# xp-pen-tablet setup script for Cereus/Void Musl
|
|
|
|
case "$ACTION" in
|
|
post)
|
|
if [ "$UPDATE" = "yes" ]; then
|
|
xchroot /glibc xbps-install -Syu xp-pen-tablet
|
|
|
|
# Ensure that xchroot has unmounted all binds
|
|
umount -R "glibc/dev" "glibc/etc/resolv.conf" "glibc/proc" "glibc/sys"
|
|
|
|
else
|
|
# Enter via chroot to container and install librewolf-bin
|
|
# This is necessary, because through voidnsrun it will not install automatically its dependencies, as the host already has them.
|
|
xchroot /glibc xbps-install -Syf xp-pen-tablet
|
|
|
|
# Install fonts and dependencies
|
|
xchroot /glibc xbps-install -y freetype fontconfig libXft xorg-fonts fonts-roboto-ttf qt5-dbus qt5-network qt5-x11extras qt5-widgets qt5-gui qt5-xml qt5-styleplugins
|
|
|
|
# Ensure that xchroot has unmounted all binds
|
|
umount -R "glibc/dev" "glibc/etc/resolv.conf" "glibc/proc" "glibc/sys"
|
|
|
|
# Copy udev rule to host system
|
|
cp /glibc/usr/lib/udev/rules.d/10-xp-pen.rules /usr/lib/udev/rules.d/
|
|
fi
|
|
;;
|
|
|
|
esac
|