forked from linux-surface/iptsd
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPKGBUILD
50 lines (42 loc) · 986 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
46
47
48
49
50
pkgname=iptsd
pkgver=1.2.1
pkgrel=1
pkgdesc='Userspace daemon for Intel Precise Touch & Stylus'
arch=('x86_64' 'aarch64')
url='https://github.com/linux-surface/iptsd'
license=('GPL')
depends=(
'cli11'
'eigen'
'libfmt.so'
'libINIReader.so'
'libspdlog.so'
'libcairomm-1.0.so'
'sdl2'
)
makedepends=(
'meson'
'clang'
'cmake'
'microsoft-gsl'
'systemd'
'udev'
)
build() {
cd $startdir
# Build with clang since it produces faster binaries
export CC="clang"
export CXX="clang++"
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 --wrap-mode=default --force-fallback-for=hidrd_usage,hidrd_item --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
}