New Package: xp-pen-tablet-musl
This is our second glibc-containerized package for Musl. Bug reports and suggestions are welcome.
This commit is contained in:
parent
cd86a075e9
commit
33b80ee93f
8 changed files with 98 additions and 0 deletions
28
srcpkgs/xp-pen-tablet-musl/INSTALL
Normal file
28
srcpkgs/xp-pen-tablet-musl/INSTALL
Normal file
|
@ -0,0 +1,28 @@
|
|||
# INSTALL
|
||||
# xp-pen-tablet setup script for Cereus/Void Musl
|
||||
|
||||
case "$ACTION" in
|
||||
post)
|
||||
if [ "$UPDATE" = "yes" ]; then
|
||||
xchroot /mnt 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
|
7
srcpkgs/xp-pen-tablet-musl/INSTALL.msg
Normal file
7
srcpkgs/xp-pen-tablet-musl/INSTALL.msg
Normal file
|
@ -0,0 +1,7 @@
|
|||
xp-pen-tablet has succesfully been installed in glibc container.
|
||||
You will likely need to reboot if your tablet is still not recognized by xp-pen-tablet.
|
||||
|
||||
To launch it run:
|
||||
$ voidnsrun -r /glibc /glibc/usr/lib/pentablet/pentablet.sh
|
||||
|
||||
(A desktop launcher does already this for you).
|
17
srcpkgs/xp-pen-tablet-musl/REMOVE
Normal file
17
srcpkgs/xp-pen-tablet-musl/REMOVE
Normal file
|
@ -0,0 +1,17 @@
|
|||
# REMOVE
|
||||
# xp-pen-tablet remove script for Cereus/Void Musl
|
||||
|
||||
case "$ACTION" in
|
||||
post)
|
||||
if [ "$UPDATE" = "no" ]; then
|
||||
# Enter via chroot to container and remove librewolf-bin
|
||||
xchroot /glibc xbps-install -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
|
||||
|
||||
# Ensure that xchroot has unmounted all binds
|
||||
umount -R "/glibc/dev" "/glibc/etc/resolv.conf" "/glibc/proc" "/glibc/sys"
|
||||
fi
|
||||
;;
|
||||
esac
|
1
srcpkgs/xp-pen-tablet-musl/REMOVE.msg
Normal file
1
srcpkgs/xp-pen-tablet-musl/REMOVE.msg
Normal file
|
@ -0,0 +1 @@
|
|||
xp-pen-tablet has succesfully been removed from glibc container.
|
10
srcpkgs/xp-pen-tablet-musl/files/autostart.desktop
Normal file
10
srcpkgs/xp-pen-tablet-musl/files/autostart.desktop
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Desktop Entry]
|
||||
Name=pentablet
|
||||
Comment=XPPen driver
|
||||
Exec=sh -c "voidnsrun -r /glibc /usr/lib/pentablet/pentablet.sh /mini"
|
||||
Icon=/usr/share/icons/pentablet.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
X-Ubuntu-Touch=true
|
||||
Categories=Application;Utility;
|
||||
StartupNotify=true
|
BIN
srcpkgs/xp-pen-tablet-musl/files/pentablet.png
Normal file
BIN
srcpkgs/xp-pen-tablet-musl/files/pentablet.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
10
srcpkgs/xp-pen-tablet-musl/files/xppentablet.desktop
Normal file
10
srcpkgs/xp-pen-tablet-musl/files/xppentablet.desktop
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Desktop Entry]
|
||||
Name=pentablet
|
||||
Comment=XPPen driver
|
||||
Exec=voidnsrun -r /glibc /usr/lib/pentablet/pentablet.sh
|
||||
Icon=/usr/share/icons/pentablet.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
X-Ubuntu-Touch=true
|
||||
Categories=Application;Utility;
|
||||
StartupNotify=true
|
25
srcpkgs/xp-pen-tablet-musl/template
Normal file
25
srcpkgs/xp-pen-tablet-musl/template
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Template file for 'xp-pen-tablet-musl'
|
||||
pkgname=xp-pen-tablet-musl
|
||||
version=3.2.3.220323
|
||||
revision=3
|
||||
_release=1
|
||||
archs="x86_64-musl"
|
||||
repository="cereus-extra"
|
||||
short_desc="XP-Pen Official Linux utility - glibc containerized package"
|
||||
maintainer="Kevin F. <https://github.com/KF-Art>"
|
||||
hostmakedepends="tar xz xbps-triggers"
|
||||
makedepends="xbps-triggers"
|
||||
depends="voidnsrun-setup"
|
||||
license="LGPL-3.0"
|
||||
homepage="https://www.xp-pen.com/download/index.html"
|
||||
|
||||
do_install() {
|
||||
# Install launcher
|
||||
vinstall ${FILESDIR}/xppentablet.desktop 0644 usr/share/applications
|
||||
|
||||
# Enable autostart
|
||||
vinstall ${FILESDIR}/autostart.desktop 0644 etc/xdg/autostart xppentablet.desktop
|
||||
|
||||
# Install the icons
|
||||
vinstall ${FILESDIR}/pentablet.png 0644 usr/share/icons/
|
||||
}
|
Loading…
Add table
Reference in a new issue