summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 983e57150a5c2a9bdc45d305dd5b8ca3355be08e (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
35
# Maintainer: Fabian Maurer <dark.shadow4@web.de>

pkgname=plasma-pk-updates-git
pkgver=r102.16371ba
pkgrel=1
pkgdesc="Plasma5 applet for software updates using PackageKit"
arch=('any')
url="https://quickgit.kde.org/?p=plasma-pk-updates.git"
license=('GPL')
depends=('packagekit' 'plasma-workspace' 'kdoctools' 'kdesignerplugin')
makedepends=('git' 'extra-cmake-modules')
source=('git://anongit.kde.org/plasma-pk-updates.git')
md5sums=('SKIP')

pkgver() {
	cd ${srcdir}/plasma-pk-updates
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd ${srcdir}/plasma-pk-updates
  mkdir build
}

build() {
  cd ${srcdir}/plasma-pk-updates/build
  cmake .. \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
}

package() {
  cd ${srcdir}/plasma-pk-updates/build
  make DESTDIR="$pkgdir/" install
}