xp-pen-tablet: fix PATH launch script

This commit is contained in:
KF-Art 2023-05-26 20:41:33 -04:00
parent 8aa7e00be4
commit ecd7d3ccb7
2 changed files with 9 additions and 4 deletions

View file

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

View file

@ -1,7 +1,7 @@
# Template file for 'xp-pen-tablet' # Template file for 'xp-pen-tablet'
pkgname=xp-pen-tablet pkgname=xp-pen-tablet
version=3.2.3.230215 version=3.2.3.230215
revision=1 revision=2
archs="x86_64" archs="x86_64"
create_wrksrc=yes create_wrksrc=yes
build_style=fetch build_style=fetch
@ -29,9 +29,8 @@ do_install() {
# Fix icon permissions # Fix icon permissions
chmod 644 ${DESTDIR}/usr/share/icons/pentablet.png chmod 644 ${DESTDIR}/usr/share/icons/pentablet.png
# Link to PATH. # Use an alternative launch script for PATH
vmkdir usr/bin vbin ${FILESDIR}/pentablet.sh
ln -rs ${DESTDIR}/usr/lib/pentablet/pentablet.sh ${DESTDIR}/usr/bin/pentablet
# Start in system tray by default. # Start in system tray by default.
sed -re 's/(^Exec=\/.+)/\1 \/mini/gi' -i ${DESTDIR}/etc/xdg/autostart/xppentablet.desktop sed -re 's/(^Exec=\/.+)/\1 \/mini/gi' -i ${DESTDIR}/etc/xdg/autostart/xppentablet.desktop