xp-pen-tablet-musl: correct REMOVE hook & fix PATH launch script

This commit is contained in:
KF-Art 2023-05-26 20:39:08 -04:00
parent 04fb36fce4
commit 8aa7e00be4
4 changed files with 11 additions and 2 deletions

View file

@ -4,4 +4,4 @@ You will likely need to reboot if your tablet is still not recognized by xp-pen-
To launch it run:
$ voidnsrun -r /glibc /glibc/usr/lib/pentablet/pentablet.sh
(A desktop launcher does already this for you).
Or use the custom script at /usr/bin.

View file

@ -5,7 +5,7 @@ case "$ACTION" in
post)
if [ "$UPDATE" = "no" ]; then
# Enter via chroot to container and remove xp-pen-tablet
xchroot /glibc xbps-install -Ryfv xp-pen-tablet qt5-dbus qt5-network qt5-x11extras qt5-widgets qt5-gui qt5-xml qt5-styleplugins
xchroot /glibc xbps-remove -Ryfv xp-pen-tablet qt5-dbus qt5-network qt5-x11extras qt5-widgets qt5-gui qt5-xml qt5-styleplugins
# Remove udev rule from host system
rm -f /usr/lib/udev/rules.d/10-xp-pen.rules

View file

@ -0,0 +1,6 @@
#!/bin/sh
appname='pentablet'
dirname=/glibc/usr/lib/pentablet
LD_LIBRARY_PATH=$dirname/lib
export LD_LIBRARY_PATH
voidnsrun -r /glibc $dirname/$appname "$@"

View file

@ -17,6 +17,9 @@ do_install() {
# Install launcher
vinstall ${FILESDIR}/xppentablet.desktop 0644 usr/share/applications
# Use an alternative launch script for PATH
vbin ${FILESDIR}/pentablet.sh
# Enable autostart
vinstall ${FILESDIR}/autostart.desktop 0644 etc/xdg/autostart xppentablet.desktop