summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c5c1d54993e3405696b56381868d6c87d96af1eb (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
# Maintainer: Chris Boyle <christopher.boyle.101 at strath dot ac dot uk>
pkgname=wwsd-git
pkgver=r20.60548b6
pkgrel=1

pkgdesc="WWSd: i3 workspace wallpaper setter daemon"
arch=('any')
url="https://github.com/cbosoft/wwsd"
license=('MIT')

groups=()
depends=('python' 'python-docopt' 'nitrogen' 'i3-wm')
makedepends=('git')

source=("${pkgname}::git+https://github.com/cbosoft/wwsd.git#branch=master")

md5sums=('SKIP')

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

package() {
    cd "${srcdir}"
    # python script
    install -vDm 755 "${pkgname}/wwsd" "${pkgdir}/usr/bin/wwsd"
}