summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 653b1c34c478e12987040f6a699b055f481b9c7f (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
# Maintainer: Iyán Méndez Veiga <me (at) iyanmv (dot) com>
pkgname=plasma6-applets-simpleweather-git
_gitpkgname=plasma-applet-simpleweather
pkgver=r131.d353056
pkgrel=1
pkgdesc="A minimalistic desktop weather widget based on the default KDE one"
arch=(any)
url=https://github.com/Zren/plasma-applet-simpleweather
license=(GPL-3.0-only)
depends=(
    kdeplasma-addons
    libplasma
    plasma5support
)
makedepends=(git)
conflicts=(plasma5-applets-simpleweather-git)
source=($_gitpkgname::git+https://github.com/Zren/$_gitpkgname)
b2sums=(SKIP)

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

package() {
    cd $_gitpkgname
    mkdir -p "$pkgdir"/usr/share/plasma/plasmoids/com.github.zren.simpleweather
    cp -r package/* "$pkgdir"/usr/share/plasma/plasmoids/com.github.zren.simpleweather/
}