mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
40 lines
1.0 KiB
Bash
40 lines
1.0 KiB
Bash
pkgname=plasma5-applets-rssnow
|
|
pkgver=1.0.r29.46e7e43
|
|
pkgrel=1
|
|
pkgdesc="Show news from various sources"
|
|
arch=('x86_64')
|
|
url="https://github.com/Misenko/rssnow-plasma5-applet"
|
|
license=('GPL')
|
|
depends=('plasma-workspace')
|
|
makedepends=('cmake' 'git' 'extra-cmake-modules')
|
|
provides=("${pkgname%-git}")
|
|
conflicts=("${pkgname%-git}")
|
|
source=(${pkgname}::git+https://github.com/Misenko/rssnow-plasma5-applet.git)
|
|
sha1sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd "$srcdir/${pkgname}"
|
|
printf "%s.r%s.%s" "$(sed -n "s/^X-KDE-PluginInfo-Version=\(.*\)$/\1/p" plasmoid/metadata.desktop)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
}
|
|
|
|
prepare() {
|
|
cd "$srcdir/${pkgname}"
|
|
rm -rf build
|
|
mkdir -p build
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/${pkgname}/build"
|
|
|
|
export QT_SELECT=5
|
|
cmake .. \
|
|
-DCMAKE_INSTALL_PREFIX=$(kf5-config --prefix) \
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/${pkgname}/build"
|
|
make DESTDIR="${pkgdir}/" install
|
|
}
|