summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: af9f192464e14329dab91bace9deb4717281d185 (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 Mike Harris <mike.a.harris@outlook.com>
pkgname=plasma5-applets-kde-arch-update-notifier-git
pkgver=6.0.r0.gf527c0f
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" "yakuake" "pacman-contrib")
optdepends=("checkupdates-aur")
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
	
}