summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0b416ce951e6f48a3d72fc0951197588bbd12f83 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Maintainer: User8395 <therealuser8395@proton.me>
pkgname=plasma-mobile-git
pkgver=r3362.3a2c3bc74
pkgrel=1
pkgdesc="Plasma Mobile shell components."
arch=('any')
url="https://invent.kde.org/plasma/plasma-mobile"
license=('GPL2')
groups=()
depends=(
  plasma-nano-git
  plasma-nm-git
  plasma-pa-git
  bluez-qt
  powerdevil-git
  modemmanager-qt-git
  qqc2-breeze-style-git
  kirigami-addons-git
  maliit-keyboard
  kpipewire-git
  plasma-settings
  kwin-git
)
makedepends=('cmake' 'extra-cmake-modules')
conflicts=('plasma-mobile')
source=('git+https://invent.kde.org/plasma/plasma-mobile.git')
noextract=()
md5sums=('SKIP')

pkgver() {
        cd "$srcdir"
        printf "r%s.%s\n" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  mkdir -p build
}

build() {
  cmake -B build -S "plasma-nano" \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DBUILD_TESTING=OFF \
    -DLIB_INSTALL_DIR=lib \
    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
    -DCMAKE_BUILD_TYPE=Release
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}