summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ce921051097c5412e4fdecad02e8ffcb3537be49 (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: infinitebash <aur at infinitebash dot com>
_pkgname="gnome-shell-extension-colorblind-filters"
pkgname="${_pkgname}-git"
_uuid="colorblind-filters@G-dH.github.com"
pkgver=r55.8dc2626
pkgrel=1
pkgdesc="A GNOME Shell extension for main panel that offers full-screen color filters that should help color-blind users and developers."
arch=(any)
url="https://github.com/G-dH/gnome-colorblind-filters"
license=('GPLv3')
depends=(gnome-shell)
makedepends=(git make zip unzip)
source=("${_pkgname}::git+https://github.com/G-dH/gnome-colorblind-filters")
sha256sums=('SKIP')


pkgver() {
  cd "$_pkgname"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

build() {
  cd "${srcdir}/${_pkgname}"
  make zip
}

package() {
  mkdir -p ${pkgdir}/usr/share/gnome-shell/extensions/$_uuid
  cd ${pkgdir}/usr/share/gnome-shell/extensions/$_uuid 
  unzip "${srcdir}/${_pkgname}/$_uuid.zip"
}