mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
29 lines
1015 B
Bash
29 lines
1015 B
Bash
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
|
|
}
|