-
Notifications
You must be signed in to change notification settings - Fork 48
/
PKGBUILD
45 lines (38 loc) · 850 Bytes
/
PKGBUILD
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
45
pkgname=iptsd
pkgver=3
pkgrel=1
pkgdesc='Userspace daemon for Intel Precise Touch & Stylus'
arch=('x86_64' 'aarch64')
url='https://github.com/linux-surface/iptsd'
license=('GPL')
depends=(
'libgl'
'libx11'
'libxext'
'libxcursor'
'libxi'
'libxfixes'
'libxrandr'
'libcairomm-1.0.so'
)
makedepends=(
'meson'
'gcc'
'systemd'
'udev'
)
build() {
cd $startdir
export CFLAGS="$(echo "$CFLAGS" | sed 's|-O2||g' | sed 's|-mtune=generic||g' | sed 's|-march=x86_64||g')"
export CXXFLAGS="$(echo "$CXXFLAGS" | sed 's|-O2||g' | sed 's|-mtune=generic||g' | sed 's|-march=x86_64||g')"
arch-meson build --default-library=static --wrap-mode=forcefallback --buildtype=release --debug
meson compile -C build
}
check() {
cd $startdir
meson test -C build
}
package() {
cd $startdir
DESTDIR="$pkgdir" meson install -C build --skip-subprojects
}