# Maintainer: éclairevoyant # Contributor: Mark Wagie # Contributor: ov3rl0w # Contributor: Morten Linderud # Contributor: Sean Haugh _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/" }