summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 58ed01f8937c5b81900cc74f35fe87deb5d2226a (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: Iyán Méndez Veiga <me (at) iyanmv (dot) com>

pkgname=plasma5-applets-simpleweather-git
_pkgname=plasma5-applets-simpleweather
_gitpkgname=plasma-applet-simpleweather
pkgver=r61.bdc5735
pkgrel=2
pkgdesc="Plasmoid for Plasma 5. A minimalistic desktop weather widget based on the default KDE one."
arch=('any')
url="https://github.com/Zren/$_gitpkgname"
license=('GPL')
depends=('plasma-workspace' 'qt5-graphicaleffects' 'kdeplasma-addons')
makedepends=('git' 'extra-cmake-modules')
source=("git+https://github.com/Zren/$_gitpkgname.git")
md5sums=('SKIP')

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

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