summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9ed044d48259e12890230abe7827f67f61d0b72f (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Maintainer: Thomas Booker (CoderThomasB) <tw.booker@outlook.com>
# Contributor: <reg-archlinux AT klein DOT tuxli DOT ch>
# Contributor: Philip Goto <philip.goto@gmail.com>
# Contributor: Sam Whited <sam@samwhited.com>

pkgname=feedbackd
pkgver=0.2.0
pkgrel=1
pkgdesc='A daemon to provide haptic feedback on events'
arch=(x86_64 aarch64)
url='https://source.puri.sm/Librem5/feedbackd'
license=(GPL3)
depends=(
	dconf
	gsound
	json-glib
	libgudev
	gsettings-desktop-schemas
)
makedepends=(
	gobject-introspection
	meson
	vala
	git
	python-docutils
)

source=(
	"git+${url}.git#tag=v${pkgver}"
)
sha256sums=(
	'SKIP'
)

pkgver() {
	cd "${pkgname}"
	git describe --tags | sed 's/^v//'
}

prepare() {
	cd "${pkgname}"

	git submodule init
	git submodule update
}

build() {
	arch-meson "${pkgname}" build -Dgtk_doc=false -Dman=true -Dtests=true -Ddaemon=true
	meson compile -C build
}

check() {
	meson test -C build --print-errorlogs
}

package() {
	DESTDIR="${pkgdir}" meson install -C build
}