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

pkgname=gnome-shell-extension-gravatar
pkgver=1
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' 'gnome-shell-extension-prefs')
conflicts=("${pkgname}-git")
install=gschemas.install
source=("https://github.com/jrouleau/gnome-shell-extension-gravatar/archive/v${pkgver}.tar.gz")
noextract=()
md5sums=('289cdbaf6cc842eb6473607665c89aaa')

_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
}