summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8f66c63dd3236d1a966cdd71f2d2d96d1b8f90b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Nathan Simmonds <arch@nsimmonds.com>
pkgname=plasma5-applets-kde-arch-update-notifier
pkgver=7.2.1
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=('any')
license=('GPL')
depends=("fakeroot" "konsole" "pacman-contrib" "plasma-desktop" "plasma-framework" "qt5-xmlpatterns")
optdepends=("checkupdates-aur" "snapd" "yakuake")
makedepends=("make" "cmake" "git" "extra-cmake-modules")
conflicts=(plasma5-applets-kde-arch-update-notifier-git)
replaces=(plasma5-applets-kde-arch-update-notifier-git)
backup=()
install=
source=("https://github.com/I-Dream-in-Code/kde-arch-update-plasmoid/archive/$pkgver.tar.gz")
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 "$pkgname-$pkgver"
	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 "$pkgname-$pkgver"
	make install
}