#Maintainer Mike Harris pkgname=plasma5-applets-kde-arch-update-notifier-git pkgver=7.2.1.r0.ge011f5b pkgrel=1 pkgdesc="A KDE plasmoid for your system tray notifying you of available updates with AUR Support" url="https://github.com/I-Dream-in-Code/kde-arch-update-plasmoid" arch=('x86_64') license=('GPL') depends=("fakeroot" "konsole" "pacman-contrib" "plasma-desktop" "plasma-framework") optdepends=("checkupdates-aur" "snapd" "yakuake") makedepends=("make" "cmake" "git" "extra-cmake-modules") conflicts=() replaces=() backup=() install= source=("git+https://github.com/I-Dream-in-Code/kde-arch-update-plasmoid.git") md5sums=("SKIP") pkgver() { cd "$srcdir/kde-arch-update-plasmoid" # cutting off 'foo-' prefix that presents in the git tag printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g')" } build() { cd kde-arch-update-plasmoid mkdir build cd build cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_LIBDIR=lib -DKDE_INSTALL_USE_QT_SYS_PATHS=ON } package(){ cd ${srcdir}/kde-arch-update-plasmoid/build make DESTDIR="$pkgdir" install }