summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f0f6ae792b23cbc8c563c5e1edd8697b8ff179cd (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=6.5.90.r3.g81232b3
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 "plasma-mobile"
	git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

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
}