summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: 8e6fa6d37ce97bafaae051840bbd0331ab560252 (plain) (blame)
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
39
40
41
42
43
44
45
# Maintainer Kamil BÄ…czkowski <me@kavela.ch>

pkgname=pywal-16-colors-git
_gitname=pywal
pkgver=3.3.0.r138.g80a1507
pkgrel=1
pkgdesc="Generate and change color-schemes on the fly, now with 16 colors."
arch=('any')
url="https://git.sheriffmediocre.xyz/pywal"
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
optdepends=('feh: set wallpaper'
            'nitrogen: set wallpaper'
            'python2: reload gtk2 themes on the fly')
provides=("pywal" "pywal-git")
conflicts=("pywal" "pywal-git" "pywal-16-colors")
source=('git+git://git.sheriffmediocre.xyz/pywal')
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/${_gitname}"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$srcdir/${_gitname}"
	python setup.py build
}

check() {
	cd "$srcdir/${_gitname}"
	python setup.py test
}

package() {
	echo "${conflicts[@]}" > ~/debug
	cd "$srcdir/${_gitname}"
	export PYTHONHASHSEED=0
	python setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1 --skip-build

	install -Dm644 LICENSE.md -t "$pkgdir/usr/share/licenses/${pkgname%-git}"
}

#vim: syntax=sh