blob: d6f7e79c24d71aabb6c9d209e9f019a57d60a330 (
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
|
# Maintainer: Wai <waicool20@gmail.com>
pkgname=huiontablet
pkgver=v15.0.0.121.202301131103
pkgrel=1
pkgdesc="Official Huion tablet drivers"
arch=('x86_64')
url="https://www.huion.com/download/"
license=('unknown')
source=("https://driverdl.huion.com/driver/Linux/HuionTablet_$pkgver.$arch.tar.xz")
md5sums=("7a3d6baa71d2667bf2f0ead10a6905b1")
prepare() {
cd "${srcdir}"
# Modify install script with our dirs
sed -E -i "s|(sysRuleDir=).*|\1$pkgdir/usr/lib/udev/rules.d|" install.sh
sed -E -i "s|(sysAppDir=).*|\1$pkgdir/usr/lib/|" install.sh
sed -E -i "s|(sysDesktopDir=).*|\1$pkgdir/usr/share/applications|" install.sh
sed -E -i "s|(sysAppIconDir=).*|\1$pkgdir/usr/share/icons|" install.sh
sed -E -i "s|(sysAutoStartDir=).*|\1$pkgdir/etc/xdg/autostart|" install.sh
sed -E -i "s|killall.*||" install.sh
sed -E -i "s|sudo ||" install.sh
sed -E -i "s|/usr/lib/huiontablet/res|$pkgdir\0|" install.sh
# Remove stuff after this line
sed -E -i "/#Copy config files/Q" install.sh
}
package() {
cd "${srcdir}"
# Make directories
grep "sys.*Dir=" install.sh | sed -E 's/.*=(.*)/\1/' | tr -d '"' | xargs mkdir -p
# Invoke install script
sh install.sh
}
|