summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 17dede2c3a73e26bd45347d9253895e3f9e393d4 (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
# Maintainer: Damjan Georgievski <gdamjan@gmail.com>

pkgname=canonical-multipass
_realname=multipass
pkgver=1.15.0
pkgrel=1
pkgdesc="Multipass is a lightweight VM manager for Linux, Windows and macOS."
arch=('x86_64')
url="https://multipass.run"
license=('GPL-3.0-only')
source=("git+https://github.com/canonical/${_realname}.git#tag=v${pkgver}"
        multipassd.service)
depends=('glibc' 'gcc-libs' 'systemd-libs' 'apparmor' 'openssl' 'qt6-base' 'qemu-base')
makedepends=('git' 'cmake' 'libvirt')
optdepends=(
    'libvirt: to use the libvirt driver'
)


_builddir=_build

prepare() {
  cd "${_realname}"
  git submodule update --init --recursive
}

build() {
  cmake -B ${_builddir} \
      -S "${_realname}" \
      -Wno-dev \
      -DMULTIPASS_ENABLE_FLUTTER_GUI=OFF \
      -DMULTIPASS_ENABLE_TESTS=OFF \
      -DCMAKE_INSTALL_PREFIX=/usr
  cmake --build ${_builddir}
}

package() {
  DESTDIR="$pkgdir" cmake --install ${_builddir}
  # not needed in package
  rm "$pkgdir"/usr/lib/libssh.a
  install -Dm644 "$srcdir"/multipassd.service "$pkgdir"/usr/lib/systemd/system/multipassd.service
}

sha256sums=('f03ea0b7a61a0c049a82dd531b2c073c8f4d0dd7e3cca759b9705d8ef94d05e5'
            'f7aebd4ab185048ee10e8185ac230c8ac549ff29b2e52722fbf366ad6f3c6b59')