summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4530e98c52773bd32958794b0a49fbf6b727293c (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
52
53
54
55
56
57
58
59
60
61
62
63
64
# Maintainer: Devin Lin <devin@kde.org>
pkgname=plasma-mobile
pkgver=6.6.3
pkgrel=1
pkgdesc='Plasma Mobile shell components'
arch=(x86_64 i686 i486 pentium4 arm armv6h armv7h aarch64)
url='https://invent.kde.org/plasma/plasma-mobile'
license=('GPL3')
groups=()
depends=(
  breeze
  breeze-icons
  breeze-cursors
  breeze-gtk
  bluez-qt
  kio
  kpipewire
  kwin
  layer-shell-qt
  milou
  modemmanager-qt
  plasma-keyboard
  plasma-nano
  plasma-nm
  plasma-pa
  plasma-settings
  plasma-workspace
  powerdevil
  qqc2-breeze-style
  qt6-sensors
  xdg-desktop-portal-kde
)
optdepends=(
  'iio-sensor-proxy: IIO accelerometer proxy needed for screen rotation'
  'plasma-camera: The camera app for Plasma'
  'plasma-dialer: Dialer application'
  'plasma-mobile-sounds: Plasma Mobile sound theme'
  'plasma-workspace-wallpapers: A large wallpaper selection for Plasma'
)
conflicts=('plasma-mobile-git')
makedepends=(cmake extra-cmake-modules plasma-wayland-protocols)
source=("https://download.kde.org/stable/plasma/$pkgver/$pkgname-$pkgver.tar.xz")
sha256sums=('98dd7262c995732875a475ecb8f61c515da0e5f442e769705071d9267dd82291')

prepare() {
  mkdir -p build
}

build() {
  cmake -B build -S "${pkgname}-${pkgver}" \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=/usr/lib \
    -DCMAKE_INSTALL_LIBEXECDIR=lib \
    -DBUILD_TESTING=OFF
  cmake --build build
}

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

  install -Dm644 "${pkgname}-${pkgver}/$pkgname.service" \
    "$pkgdir/usr/lib/systemd/system/$pkgname.service"
}