summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f3648d47a59a7d0714b9e346189dcb679e4104b4 (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
# Maintainer: Mark Kubiak <mkubiak.dev at gmail dot com>

_gitname=wallpaper-reddit
_gitbranch=master
pkgname=${_gitname}-git
pkgver=r172.928125e
pkgrel=1
pkgdesc="Downloads and sets wallpapers pulled from reddit.com"
arch=('any')
url="https://github.com/markubiak/wallpaper-reddit"
license=('GPL3')
depends=('python' 'python-pillow')
makedepends=('git' 'python-setuptools')
provides=(${_gitname})
conflicts=(${_gitname})
source=("git+https://github.com/markubiak/${_gitname}#branch=${_gitbranch}")
sha256sums=('SKIP')

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

package() {
	cd ${_gitname}
	python3 setup.py install --root="${pkgdir}" \
	--prefix="/usr" \
	--compile -O1
	install -D LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}