summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ccbe361a23b3bff852ffcf44cc551a116c9e0c2f (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
# Maintainer: Nebulosa  <nebulosa2007-at-yandex-dot-ru>

pkgname=gvc-git
pkgver=r3.a00aa37
pkgrel=5
pkgdesc="Provides libgnome-volume-control outside Gnome environment."
arch=(x86_64)
url="https://github.com/JingMatrix/${pkgname%-git}"
license=(GPL-3.0-only)
depends=(
  glib2
  gobject-introspection
  libpulse
)
makedepends=(
  git
  glib2-devel
  meson
)
provides=(${pkgname%-git})
conflicts=(${pkgname%-git} gsconnect)
options=(!debug)
source=(${pkgname%-git}::git+$url.git)
b2sums=('SKIP')

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

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

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