pkgname=plasma5-applets-yahoo-weather _name=com.librehat.yahooweather pkgver=5.2.0 pkgrel=1 pkgdesc="Yahoo! Weather Widget for Plasma Desktop" arch=('x86_64') url="https://github.com/librehat/com.librehat.yahooweather" license=('GPL') group=('plasma5-applets') depends=('plasma-workspace' 'qt5-tools') makedepends=('extra-cmake-modules' 'zip') source=("https://github.com/librehat/com.librehat.yahooweather/archive/v${pkgver}.tar.gz") sha256sums=('94e2891bf9ef65de52a5e35528eb8af45e4ed7829f6678e5d346727c21d388d5') build() { cd "${_name}-${pkgver}/plasmoid" ver=`grep "X-KDE-PluginInfo-Version" metadata.desktop | sed 's/.*=//'` app=`grep "X-KDE-PluginInfo-Name" metadata.desktop | sed 's/.*=//'` } package() { cd "${_name}-${pkgver}/plasmoid" install -d $pkgdir/usr/share/plasma/plasmoids/com.librehat.yahooweather/contents install -D metadata.desktop $pkgdir/usr/share/plasma/plasmoids/com.librehat.yahooweather cp -r contents $pkgdir/usr/share/plasma/plasmoids/com.librehat.yahooweather }