summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b123de736c56384436e7c9b61447a43a65d92e0d (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: Márk Sági-Kazár <mark.sagi-kazar@gmail.com>

pkgname=gnome-shell-extension-gravatar
pkgver=4
pkgrel=1
pkgdesc="A GNOME Shell extension to synchronize your user icon with Gravatar."
arch=('any')
url="https://github.com/jrouleau/gnome-shell-extension-gravatar"
license=('MIT')
depends=('gnome-shell')
optdepends=('dconf' 'gnome-tweak-tool')
conflicts=("${pkgname}-git")
install=gschemas.install
source=("https://github.com/jrouleau/gnome-shell-extension-gravatar/archive/v${pkgver}.tar.gz")
md5sums=('5469d6566683ad5c007c3a6922d8bae6')

_uuid='gravatar@jr.rlabs.io'

package() {
    cd "${srcdir}/gnome-shell-extension-gravatar-${pkgver}"

    _extension_path="${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}"
    _schema_path="${pkgdir}/usr/share/glib-2.0/schemas"

    install -d $_extension_path
    install -d $_schema_path

    install -Dm644 src/schemas/org.gnome.shell.extensions.gravatar.gschema.xml $_schema_path
    rm -rf src/schemas

    cp -r src/* $_extension_path
    cp -r lib/ $_extension_path
    cp LICENSE $_extension_path
}