summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aac7f245a63bf9d7a85b4f21d21ad6b81960240b (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=r56.d6b094f
pkgrel=1

pkgdesc="Sets wallpaper depending on user-set rules"
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"
}