summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0fb55f85f438ef52dccaa67e8e84e716998be7fe (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

pkgname=gnome-shell-extension-background-logo-git
_name=background-logo-extension
pkgver=3.24.0.r0.g16d6fe2
pkgrel=1
pkgdesc="GNOME Shell extension to overlay a logo over the default background"
arch=(any)
url="https://pagure.io/background-logo-extension"
source=(git+${url} 'archlinux-wm-gnome.svg')
sha256sums=('SKIP' 'ae3223dab86d51ed54ac22c0518102bcd965fe0576839a038e559301cf94cc2c')
license=(GPL3)
makedepends=(git autoconf make gnome-common)

pkgver() {
  cd "${srcdir}/${_name}"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "${srcdir}/${_name}"
    ./autogen.sh --prefix=/usr
    make
}

package() {
    depends=('gnome-shell' 'gnome-backgrounds')
    cd "${srcdir}/${_name}"
    sed -i "s@/usr/share/fedora-logos/fedora_lightbackground.svg@/usr/share/archlinux-logos/archlinux_lightbackground.svg@g" schemas/org.fedorahosted.background-logo-extension.gschema.xml
    make DESTDIR="$pkgdir" install
    install -Dm644 "${srcdir}"/archlinux-wm-gnome.svg $pkgdir/usr/share/archlinux-logos/archlinux_lightbackground.svg
}