summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3fb5d6e44eb163f73cf05b35cdcaaecb211da019 (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
# Maintainer: Parhammed <parhammed@gmail.com>
# Contributor: Tuhana GAYRETLİ <aur at tuhana dot me>
# shellcheck disable=SC2034,SC2148,SC2164,SC2154

pkgname=kde-material-you-colors-git
_pkgname=${pkgname%-git}
branch='main'
pkgver=1.10.1.r0.gd4c8998
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=(
    'git' 
    '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'
)
conflicts=("$_pkgname")
provides=("$_pkgname")
options=(!debug)
source=("$pkgname::git+${url}.git#branch=$branch")
sha256sums=(SKIP)

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

build() {
  cd "$srcdir/$pkgname"
  # backend
  python -m build --wheel --no-isolation
  # plasmoid & screenshot helper
  cmake -B build -S . \
    -DINSTALL_PLASMOID=ON
  cmake --build build
}

package() {
  cd "$srcdir/$pkgname"
  # backend
  python -m installer --destdir="$pkgdir" dist/*.whl
  # plasmoid & screenshot helper
  DESTDIR="$pkgdir" cmake --install build
}