blob: 6333f2b2023e2cf36d9b658ec3fa12f368334f24 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Contributor: Marcell Meszaros < marcell.meszaros AT runbox.eu >
# Contributor: Kamil BÄ…czkowski <me@kavela.ch>
_gitname=pywal16
pkgname=python-${_gitname}
pkgver=3.6.0
pkgrel=3
epoch=1
pkgdesc='Generate and change color-schemes on the fly (fork that uses 16 colors)'
arch=('any')
url="https://github.com/eylles/${_gitname}"
license=('MIT')
depends=(
'imagemagick'
'procps' # part of Arch 'base', but better to define all direct deps
'python'
'sh' # bash is part of Arch 'base', but better to define all direct deps
)
makedepends=(
'git'
'python-setuptools'
)
optdepends=(
'colorz: alternative color backend'
'python-colorthief: alternative color backend'
'python-fast-colorthief: alternative color backend (faster fork of colorthief)'
'python-haishoku: alternative color backend'
'xorg-xrdb: save colors to X db for new terminals to use'
'bspwm: reload bspwm colors'
'i3-wm: reload i3 colors'
'kitty: reload kitty colors'
'polybar: reload polybar colors'
'python2: reload GTK2 themes'
'sway: reload sway colors'
"feh: set wallpaper for X (pywal's #1 choice)"
"xwallpaper: set wallpaper for X (pywal's #2 choice)"
"nitrogen: set wallpaper for X (pywal's #3 choice)"
"bgs: set wallpaper for X (pywal's #4 choice)"
"hsetroot: set wallpaper for X (pywal's #5 choice)"
"habak: set wallpaper for X (pywal's #6 choice)"
"imagemagick: set wallpaper for X (pywal's #7 fallback choice)"
)
provides=(
'pywal'
'python-pywal'
)
conflicts=(
'pywal'
'python-pywal'
)
source=("git+$url.git#tag=$pkgver")
b2sums=('SKIP')
prepare() {
cd "$srcdir/${_gitname}"
echo "removing support for the discontinued schemer2 which has no license..."
rm -v 'pywal/backends/schemer2.py'
}
build() {
cd "$srcdir/${_gitname}"
python setup.py build
}
package() {
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"
}
|