summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b050c0e0a07f365706fd7fbd359c05e419e7d445 (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
# Maintainer: Fernando Guevara <admin@ebadoo.com>

pkgname=ebadoo-shell-extensions
pkgver=3.34.2
pkgrel=1
pkgdesc="Extensions for EBADOO shell, including classic mode"
url="https://wiki.gnome.org/Projects/GnomeShell/Extensions"
arch=(any)
license=(GPL)
makedepends=(meson git sassc js60)
depends=(ebadoo-desktop-schemas ebadoo-shell)
optdepends=('gnome-menus: applications menu extension')
groups=(ebadoo-desktop)
conflicts=(gnome-shell-extensions)
provides=(gnome-shell-extensions gnome-shell-extensions=$pkgver)
source=("git+https://gitlab.com/ebadoo/ebadoo-shell-extensions.git"
        "git+https://gitlab.gnome.org/GNOME/gnome-shell-sass.git")
sha256sums=('SKIP'
            'SKIP')

pkgver() {
  cd $pkgname
  git describe --tags | sed 's/-/+/g'
}

prepare() {
  cd $pkgname

  git submodule init
  git config --local submodule.data/gnome-shell-sass.url "$srcdir/gnome-shell-sass"
  git submodule update
}

build() {
  arch-meson $pkgname build -D extension_set=all -D classic_mode=true
  ninja -C build
}

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

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