summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d75e396e734764c57809f0dca288524178e6af96 (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
# Maintainer: Sebastian Kremiec <sebastian.kremiec at gmail dot com>
pkgname=gnome-shell-extension-quick-settings-audio-panel
pkgver=102
pkgrel=1
pkgdesc='Quick Settings Audio Panel GNOME Extension'
arch=('any')
url=https://github.com/Rayzeq/quick-settings-audio-panel
license=('GPL-3.0-or-later')
source=("$pkgname-v$pkgver::git+$url.git#tag=v$pkgver")
sha256sums=('713ff55f7476baaa3b52de148286bfaab142b17a814dd768e959aa8597f49046')
depends=('gnome-shell')
makedepends=('glib2' 'npm')

build() {
  cd $pkgname-v$pkgver

  make pack
}

package() {
  cd $pkgname-v$pkgver

  _uuid=quick-settings-audio-panel@rayzeq.github.io
  _extdir=$pkgdir/usr/share/gnome-shell/extensions/$_uuid

  install -d $_extdir
  unzip dist/$_uuid.shell-extension.zip -d $_extdir
  sed -i 's/@libpanel/.\/libs\/libpanel/g' $(find $_extdir -type f -name '*.js')
  glib-compile-schemas $_extdir/schemas

  find $_extdir -type f -exec chmod 644 {} +
  find $_extdir -type d -exec chmod 755 {} +
}