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

_srcname="lakeside-dynamic-wallpaper"
pkgname=gnome-backgrounds-lakeside-git
pkgver=r3.88323e3
pkgrel=1
pkgdesc="Beautiful dynamic lakeside wallpaper for Gnome"
url="https://github.com/dbasinge/${_srcname}"
depends=("gnome-backgrounds")
makedepends=("git")
provides=("gnome-backgrounds-lakeside")
license=("unknown")
arch=("any")
source=("git+${url}")
md5sums=("SKIP")

pkgver() {
    cd ${_srcname}
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd ${_srcname}

    install -dm755 ${pkgdir}/usr/share/backgrounds/Lakeside
    for file in Lakeside/*; do
        if [[ "$file" == *"preview"* ]]; then
            continue;
        fi
        install -Dm644 $file ${pkgdir}/usr/share/backgrounds/Lakeside
    done

    install -Dm644 desktop-backgrounds-lakeside.xml ${pkgdir}/usr/share/gnome-background-properties/lakeside.xml
}