blob: 9af2b2dc2f13f30b694b87958cda954f912e01ac (
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
|
pkgname=kde-material-you-colors
pkgver=2.0.0
pkgrel=1
pkgdesc="Automatic Material You Colors Generator from your wallpaper for the Plasma Desktop"
arch=('x86_64')
url="https://github.com/luisbocanegra/kde-material-you-colors"
license=('GPL3')
makedepends=('extra-cmake-modules' 'python-setuptools' 'python-build' 'python-installer' 'python-wheel' 'libplasma')
depends=('python' 'python-dbus' 'python-numpy' 'python-materialyoucolor' 'plasma5support' 'python-pillow' 'python-pywal16' 'python-magic')
source=("${pkgname}-${pkgver}.tar.gz::$url/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('823df2ca043471c723a91a8fab7f8fe0c30ee459d99876c4cf51c9039297819c')
build() {
cd "${srcdir}/${pkgname}-$pkgver"
# backend
python -m build --wheel --no-isolation
# plasmoid & screenshot helper
cmake -B build -S . \
-DINSTALL_PLASMOID=ON
cmake --build build
}
package() {
cd "${srcdir}/${pkgname}-$pkgver"
# backend
python -m installer --destdir="$pkgdir" dist/*.whl
# plasmoid & screenshot helper
DESTDIR="$pkgdir" cmake --install build
}
|