xp-pen-tablet-musl: correct REMOVE hook & fix PATH launch script
This commit is contained in:
parent
04fb36fce4
commit
8aa7e00be4
4 changed files with 11 additions and 2 deletions
|
@ -4,4 +4,4 @@ You will likely need to reboot if your tablet is still not recognized by xp-pen-
|
||||||
To launch it run:
|
To launch it run:
|
||||||
$ voidnsrun -r /glibc /glibc/usr/lib/pentablet/pentablet.sh
|
$ 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.
|
||||||
|
|
|
@ -5,7 +5,7 @@ case "$ACTION" in
|
||||||
post)
|
post)
|
||||||
if [ "$UPDATE" = "no" ]; then
|
if [ "$UPDATE" = "no" ]; then
|
||||||
# Enter via chroot to container and remove xp-pen-tablet
|
# 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
|
# Remove udev rule from host system
|
||||||
rm -f /usr/lib/udev/rules.d/10-xp-pen.rules
|
rm -f /usr/lib/udev/rules.d/10-xp-pen.rules
|
||||||
|
|
6
srcpkgs/xp-pen-tablet-musl/files/pentablet.sh
Normal file
6
srcpkgs/xp-pen-tablet-musl/files/pentablet.sh
Normal 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 "$@"
|
|
@ -17,6 +17,9 @@ do_install() {
|
||||||
# Install launcher
|
# Install launcher
|
||||||
vinstall ${FILESDIR}/xppentablet.desktop 0644 usr/share/applications
|
vinstall ${FILESDIR}/xppentablet.desktop 0644 usr/share/applications
|
||||||
|
|
||||||
|
# Use an alternative launch script for PATH
|
||||||
|
vbin ${FILESDIR}/pentablet.sh
|
||||||
|
|
||||||
# Enable autostart
|
# Enable autostart
|
||||||
vinstall ${FILESDIR}/autostart.desktop 0644 etc/xdg/autostart xppentablet.desktop
|
vinstall ${FILESDIR}/autostart.desktop 0644 etc/xdg/autostart xppentablet.desktop
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue