# Maintainer: Mikhail Velichko # Contributor: Moon Sungjoon # Contributor: Hurstel Alexandre # Contributor: Tobias Manske pkgname=xp-pen-tablet pkgver=3.3.9.230222 pkgrel=2 epoch=0 pkgdesc="XP-Pen (Official) Linux utility (New UI driver)" arch=('x86_64') url='https://www.xp-pen.com/download/index.html' license=('LGPL3') source=("XPPen-pentablet-${pkgver}-1.${arch}.deb::https://www.xp-pen.ru/download/file/id/1954/pid/143/ext/deb.html") install=${pkgname}.install sha512sums=('6f33cd2090881299c8c848fee393f5ca0f3cc09f117902c214cf86e28e69eb29915709a4720b7cdf00f7f3af64bc53853f6a3d6377f07daf574d66ae0498dd09') package() { cd $srcdir ar x *.deb bsdtar xf data.tar.xz -C $pkgdir cp -r $pkgdir/lib/* $pkgdir/usr/lib rm -r $pkgdir/lib chmod 755 $pkgdir/usr/ chmod 755 $pkgdir/usr/lib/ chmod 755 $pkgdir/usr/share/ chmod 755 $pkgdir/usr/share/applications/ chmod 755 $pkgdir/usr/share/icons/ #Moved from the official post_install() script to avoid errors during installation/updates chmod 777 $pkgdir/usr/lib/pentablet/conf/xppen/ chmod 777 $pkgdir/usr/lib/pentablet/lib/ chmod 777 $pkgdir/usr/lib/pentablet/platforms/ #Minimize GUI on autostartup sed -re 's/(^Exec=\/.+)/\1 \/mini/gi' -i ${pkgdir}/etc/xdg/autostart/xppentablet.desktop }