summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1487bb8906cb464f72a748970de9dbc056eb71d1 (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
59
# Maintainer:
# Contributor: Maxime Gauduin <alucryd@archlinux.org>

_pkgname="gala"
pkgname="$_pkgname-git"
pkgver=8.0.1.r13.ga31eab4
pkgrel=1
pkgdesc='The Pantheon Window Manager'
url='https://github.com/elementary/gala'
license=('GPL-3.0-or-later')
arch=('x86_64')

depends=(
  cairo
  gdk-pixbuf2
  glib2
  gnome-desktop
  graphene
  gtk3
  gtk4
  libcanberra
  libgee
  libgl
  libgranite-7.so # granite7
  libgranite.so   # granite
  libhandy-1.so   # libhandy
  libxfixes
  mutter46
)
makedepends=(
  git
  meson
  vala
)

provides=(
  "$_pkgname=${pkgver%%.r*}"
  libgala.so
)
conflicts=("$_pkgname")

_pkgsrc="$_pkgname"
source=("$_pkgsrc"::"git+$url.git")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgsrc"
  git describe --long --tags --abbrev=7 \
    | sed -E 's/^[^0-9]*//;s/([^-]*-g)/r\1/;s/-/./g'
}

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

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