summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 39aab1dfdb9e0516f50d0ad469fa7df5cde6e3e6 (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=r288.25fee3c
pkgrel=1
pkgdesc="Plasma5 applet for software updates using PackageKit"
arch=('any')
url="https://invent.kde.org/system/plasma-pk-updates.git"
license=('GPL')
depends=('packagekit' 'plasma-workspace' 'kdoctools5' 'kdesignerplugin' 'packagekit-qt5')
makedepends=('git' 'extra-cmake-modules')
source=('git+https://invent.kde.org/system/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
}