summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 45789e24c20963eb7d65f62a07bf5c65a02be8ce (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
36
37
38
39
40
41
42
43
44
45
46
47
# Maintainer: Carl George < arch at cgtx dot us >
# Contributor: XZS < d dot f dot fischer at web dot de >
# Contributor: Janne Haapsaari < haaja at iki dot fi >
# Contributor: Christopher KrooƟ < didi2002 at web dot de >

_extname="dash-to-dock"
_author="micheleg"

pkgname="gnome-shell-extension-${_extname}"
pkgver=49
pkgrel=1
epoch=1
pkgdesc="This extension moves the dash out of the overview transforming it in a dock for an easier launching of applications and a faster switching between windows and desktops."
arch=("any")
url="https://${_author}.github.io/${_extname}/"
license=("GPL2")
depends=("dconf")
makedepends=("gnome-common" "intltool" "imagemagick")
conflicts=("gnome-shell-extensions-dash-to-dock-git")
install="gschemas.install"
source=("https://github.com/${_author}/${_extname}/archive/extensions.gnome.org-v${pkgver}.tar.gz")
noextract=()
sha256sums=('50bd242f3f6e6089137957c175462475d10a2e39f6014184b792248ed7708084')

prepare() {
    cd "${srcdir}/${_extname}-extensions.gnome.org-v${pkgver}"
    grep -lZr logo.svg | while IFS= read -rd $'\0' file
    do
      sed -i 's/\(logo\.\)svg/\1png/' "$file"
    done
    convert media/logo.{svg,png}
}

build() {
    cd "${srcdir}/${_extname}-extensions.gnome.org-v${pkgver}"
    make
}

package() {
    cd "${srcdir}/${_extname}-extensions.gnome.org-v${pkgver}"
    make \
        INSTALLBASE="${pkgdir}/usr/share/gnome-shell/extensions" \
        VERSION="${pkgver}" \
        install
    _gschema="schemas/org.gnome.shell.extensions.dash-to-dock.gschema.xml"
    install -Dm0644 "${_gschema}" "${pkgdir}/usr/share/glib-2.0/${_gschema}"
}