summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c3690cd7f8a7784a43bdef7a3efa0779f58ceec5 (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=7.0.r0.gbfd2465
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
	
}