summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2746f67fa07541d6a44c1ed56d1209f3ae450406 (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
# Maintainer: Dušan Simić <dusan.simic1810@gmail.com>

pkgname=breathing-git
_reponame=Breathing
pkgver=v0.1.0.r38.gc80c095
pkgrel=1
pkgdesc="Exercise your breathing"
arch=(x86_64)
url=https://github.com/SeaDve/Breathing
license=(GPL3)
depends=(gstreamer gtk4 libadwaita python-gobject)
makedepends=(git meson)
checkdepends=('appstream-glib')
provides=(breathing)
conflicts=(breathing)
source=("git+${url}.git")
md5sums=("SKIP")

pkgver() {
	cd "${_reponame}"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	arch-meson "${_reponame}" build
	meson compile -C build
}

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

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