summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f6b24704507699c450dce9a47d7fa40eb4f4ee46 (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
# Maintainer Crewmate <sus@morshu.xyz>
_pkgname=materia-theme-transparent
pkgname=materia-transparent-gtk-theme-git
pkgver=85bdc295
pkgrel=3
pkgdesc="A Transparent Material Design theme for GNOME/GTK+ based desktop environments"
arch=(any)
license=(GPL)
depends=(gnome-themes-extra)
makedepends=(meson npm gtk3 gtk4 gnome-shell)
optdepends=('gtk-engine-murrine: for gtk2 theme')
provides=(materia-theme)
conflicts=(materia-theme)
replaces=(materia-theme)
source=(
  "${_pkgname}::git+https://github.com/ckissane/materia-theme-transparent"
  remove-npm-install-from-meson-build.patch
)
sha256sums=(
  "SKIP"
  "c74a6f934c58b50256fc09014ebd683b483800ddf8aade5e01f6f79d2832cc41"
)

pkgver() {
  cd "$srcdir/${_pkgname}"
  git rev-parse --short HEAD
}

prepare() {
  cd "$srcdir/${_pkgname}"
  patch -Np1 < ${srcdir}/remove-npm-install-from-meson-build.patch
  npm install --cache ${srcdir}/npm-cache
}

build() {
  arch-meson "$srcdir/${_pkgname}" build
  meson compile -C build
}

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