summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6d8cfcac2e606922b36b7b7844c0ec63ce4aaabf (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
# Maintainer: cyqsimon <28627918+cyqsimon@users.noreply.github.com>

pkgname=plasma6-applets-wallhaven-reborn-git
_pkgname=${pkgname%-git}
pkgver=r67.030bbfe
pkgrel=1
pkgdesc="Wallhaven wallpaper plugin for plasma 6"
arch=(any)
url="https://github.com/Blacksuan19/plasma-wallpaper-wallhaven-reborn"
license=(GPL-3.0-only)
depends=(plasma-workspace)
makedepends=(kpackage)
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("${_pkgname}::git+${url}.git")
b2sums=('SKIP')

pkgver() {
    cd "${_pkgname}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

package() {
  cd "${_pkgname}"
  kpackagetool6 --type Plasma/Wallpaper --install package/ --packageroot "${pkgdir}/usr/share/plasma/wallpapers/"
}