desktop/plasma5-applets-yahoo-weather/PKGBUILD

29 lines
1015 B
Bash
Raw Permalink Normal View History

2016-01-23 22:15:26 +08:00
pkgname=plasma5-applets-yahoo-weather
_name=com.librehat.yahooweather
pkgver=5.2.0
2016-01-23 22:15:26 +08:00
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')
2016-01-23 22:15:26 +08:00
build() {
cd "${_name}-${pkgver}/plasmoid"
2016-01-23 22:15:26 +08:00
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"
2016-01-23 22:15:26 +08:00
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
}