blob: 5a8a05b3c80569ef6434aa7466c3fb0e654ab3de (
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
|
# Maintainer: éclairevoyant
# Contributor: Mark Wagie <mark dot wagie at tutanota dot com>
# Contributor: ov3rl0w <dalcjor at libmail dot eu>
# Contributor: Morten Linderud <foxboron at archlinux dot org>
# Contributor: Sean Haugh <seanphaugh at gmail dot com>
_pkgname=pywal
pkgname="$_pkgname-git"
pkgver=3.3.0.r134.g236aa48
pkgrel=3
pkgdesc="Generate and change color-schemes on the fly."
arch=(any)
url="https://github.com/dylanaraps/pywal"
license=(MIT)
depends=(imagemagick python)
makedepends=(git python-{build,installer,wheel} python-setuptools)
optdepends=(
'colorz: alternative backend'
'feh: set wallpaper'
'nitrogen: set wallpaper'
'python-haishoku: alternative backend'
'python-colorthief: alternative backend'
)
provides=("$_pkgname")
conflicts=("$_pkgname")
source=(
"git+$url.git"
0001-fix-for-gnome-dark-theme-wallpapers.patch
)
b2sums=('SKIP'
'ff3e0d590d5b085557ff0e0df4b4aba5c3aff3cd953500654da09b00d33d01d721aa42d71bc83a750316bf8911d285c4729025b349d98aa5f6885125386d1d6b')
prepare() {
cd $_pkgname
patch -Np1 -i "$srcdir/0001-fix-for-gnome-dark-theme-wallpapers.patch"
}
pkgver() {
cd $_pkgname
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd $_pkgname
python -m build -wn
}
package() {
cd $_pkgname
python -m installer -d "$pkgdir" dist/*.whl
install -Dm644 LICENSE.md -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|