summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: da69fd10ae79a4e0cf3949d6aac8506ebea91c53 (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
# Maintainer: Weitian Leung <weitianleung[at]gmail[dot]com>

pkgname=bing-wallpaper-git
pkgver=r46
pkgrel=2
pkgdesc="Bing Wallpaper of the Day as your Linux Desktop's wallpaper"
arch=(any)
url="https://github.com/marguerite/linux-bing-wallpaper"
license=('GPL3')
optdepends=('xfconf: for xfce4 support'
            'pcmanfm-qt: for lxqt support'
            'xdotool: for kde4 support'
            'gettext: for kde4 support')
makedepends=('git' 'go')
source=("$pkgname::git+https://github.com/marguerite/linux-bing-wallpaper.git")
sha512sums=('SKIP')
install=${pkgname}.install

prepare() {
    cd "${srcdir}/${pkgname}"
    git checkout golang
}

pkgver() {
    cd "${srcdir}/${pkgname}"
    printf "r%s" "$(git rev-list --count HEAD)"
}

build() {
    cd "${srcdir}/${pkgname}"
    go build bing-wallpaper.go
}

package() {
    build_dir="${srcdir}/${pkgname}"
    install -Dm755 "${build_dir}/bing-wallpaper" "${pkgdir}/usr/bin/bing-wallpaper"
    install -Dm644 "${build_dir}/bing-wallpaper.service" "${pkgdir}/usr/lib/systemd/user/bing-wallpaper.service"
}