summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 990cacf8b72259dfdd2388f7321687c27250ce8d (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
# Maintainer: Mazhar Hussain <realmazharhussain@gmail.com>
# Contributor: Mark Wagie <mark dot wagie at proton dot me>
pkgname=daikhan-git
pkgver=r677.6494f3e
pkgrel=1
pkgdesc="A media player for the modern desktop"
arch=('x86_64')
url="https://gitlab.com/daikhan/daikhan"
license=('GPL-3.0-or-later')
depends=('gst-plugin-gtk4' 'libadwaita' 'xxhash')
makedepends=('blueprint-compiler' 'git' 'meson' 'vala')
checkdepends=('appstream')
optdepends=(
  'libclapper-gtk: improved color accuracy'
)
provides=("${pkgname%-git}")
source=('git+https://gitlab.com/daikhan/daikhan.git')
sha256sums=('SKIP')

pkgver() {
  cd "${pkgname%-git}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  arch-meson "${pkgname%-git}" build
  meson compile -C build
}

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

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