blob: e1beebd390eb8573ae00293546d082ab197c6c7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: Mikhail Velichko <efklid at gmail dot com>
# Contributor: Moon Sungjoon <sumoon at seoulsaram dot org>
# Contributor: Hurstel Alexandre <alexandre at hurstel dot eu>
# Contributor: Tobias Manske <aur at rad4day dot de>
pkgname=xp-pen-tablet
pkgver=4.0.0
pkgrel=240329
epoch=0
pkgdesc="XP-Pen (Official) Linux utility (New UI driver)"
arch=('x86_64')
url='https://www.xp-pen.com/download/index.html'
license=('custom')
source=("XPPenLinux${pkgver}-${pkgrel}.tar.gz::https://www.xp-pen.com/download/file.html?id=2854&pid=1016&ext=gz")
install=${pkgname}.install
sha512sums=('42f44dc7ff5e14e0b570cbc2b129a7748cb8325bf51d2c99700647d8bbcacb4c25a8e5a4eb623e7b0b39cf4f0362d6a1968cea3f8767d3db926cc2627357ea28')
package() {
#for ver 4.0.0-240329 fix typo in the folder name in the src archive
mv $srcdir/XPPenLinux${pkgver}-2400329 $srcdir/XPPenLinux${pkgver}-${pkgrel}
#
cp -r $srcdir/XPPenLinux${pkgver}-${pkgrel}/App/* $pkgdir
cp -r $pkgdir/lib/* $pkgdir/usr/lib
rm -r $pkgdir/lib
#Licence information
install -Dm0644 $pkgdir/usr/lib/pentablet/doc/EULA $pkgdir/usr/share/licenses/${pkgname}/LICENSE
#No longer required, according to the new driver scripts
#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/
#Starting with version 3.4.6-230714, minimized startup is implemented directly by the developers.
#Minimize GUI on autostartup
#sed -re 's/(^Exec=\/.+)/\1 \/mini/gi' -i ${pkgdir}/etc/xdg/autostart/xppentablet.desktop
}
|