summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 65bdbb829e27eb6d7cacd031c6f6d7f866c2e64f (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
# Maintainer: √Čtienne Deparis <etienne@depar.is>
pkgname=chwall-git
_gitname=chwall
pkgver=0.4.4r198.251965f
pkgrel=1
pkgdesc="A tiny wallpaper changer, written in python"
arch=("any")
url="https://git.deparis.io/chwall/about/"
license=("WTFPL")
depends=("gtk3" "python-cssselect" "python-gobject" "python-lxml"
         "python-requests" "python-xdg" "python-yaml")
makedepends=("python-setuptools" "imagemagick" "git")
conflicts=("chwall")
source=("git+https://git.deparis.io/${_gitname}")
md5sums=("SKIP")

pkgver() {
    cd "$srcdir/${_gitname}"
    curver=$(python -c "from chwall.utils import VERSION;print(VERSION)")
    printf "%sr%s.%s" "$curver" "$(git rev-list --count HEAD)" \
           "$(git rev-parse --short HEAD)"
}

package() {
    cd "$srcdir/${_gitname}"
    make DESTDIR=$pkgdir dist
}