summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9953932f0e671eba91cd67bedbc539ab33686972 (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
# Maintainer: Radiolin <anton.osi2011@gmail.com>

pkgname=mangojuice-git
pkgver=0.8.3.r35.g970baad
pkgrel=1
pkgdesc="A convenient alternative to GOverlay for configuring MangoHud"
arch=(any)
url="https://github.com/radiolamp/${pkgname%-git}"
license=(GPL-3.0-or-later)
depends=(
  glib2
  gtk4
  fontconfig
  libadwaita
  libgee
  mangohud
)
makedepends=(
  git
  meson
  vala
)

optdepends=(
  mesa-utils
  vulkan-tools
)
conflicts=(mangojuice)
provides=(${pkgname%-git})
conflicts=(${pkgname%-git})
options=(!debug)
source=(${pkgname%-git}::git+$url.git)
b2sums=('SKIP')

pkgver() {
  git -C ${pkgname%-git} describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}

build() {
  arch-meson -Dis_devel=true ${pkgname%-git} build
  meson configure  build --no-pager
  meson compile -C build
}

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