summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dced38668e17bc25c2a860ab84e5367c6a71238c (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: Daniele Basso <daniele05 dot bass at gmail dot com>
# Contributor: Dimitris Kiziridis <ragouel at outlook dot com>

pkgname=canonical-multipass-git
_pkgname=multipass
pkgver=1.12.0.r226.g50ed575c
pkgrel=1
pkgdesc="Multipass orchestrates virtual Ubuntu instances"
arch=('x86_64')
url='https://multipass.run'
license=('GPL3')
depends=('qt5-x11extras'
         'apparmor'
         'hicolor-icon-theme'
         'libvirt')
makedepends=('cmake' 'git')
conflicts=('poco'
           'libssh')
source=("git+https://github.com/canonical/multipass.git")
sha256sums=('SKIP')

pkgver() {
  cd $_pkgname
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

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

build() {
  cd $_pkgname
  rm -rf build
  mkdir -p build
  cd build
  export CXXFLAGS='-Wno-error'
  cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  make
}

package() {
  cd $_pkgname/build
  make DESTDIR="${pkgdir}" install
}