summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 58f760686aa07e9dff8ce325ae4f6e23fd22ecda (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
# Maintainer: Pieter Goetschalckx <3.14.e.ter at gmail dot com>

_pkgname=gnome-shell-extension-bettervolume
pkgname=$_pkgname-git
pkgver=r38.1a66fab
pkgrel=1
pkgdesc="Allow better interaction with the volume indicator, via mouse scroll/middle-button."
arch=('i686' 'x86_64')
url="https://github.com/Tudmotu/$_pkgname"
license=('MIT')
depends=('gnome-shell')
makedepends=('git')
source=("git+$url")
sha256sums=('SKIP')

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

package() {
  cd "$_pkgname"
  _uuid='bettervolume@tudmotu.com'

  install -Dm644 "metadata.json" \
    "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/metadata.json"
  install -m644 "extension.js" \
    "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/extension.js"
  install -m644 "convenience.js" \
    "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/convenience.js"

  install -Dm644 "LICENSE.rst" \
    "${pkgdir}/usr/share/licenses/$pkgname/LICENSE.rst"
}