blob: a9446d077d4e9ca0a798f7a06bb49202442a969d (
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
|
# Maintainer: Damjan Georgievski <gdamjan@gmail.com>
pkgname=canonical-multipass
_realname=multipass
pkgver=1.3.0
pkgrel=1
pkgdesc="Multipass is a lightweight VM manager for Linux, Windows and macOS."
arch=('x86_64')
url="https://multipass.run"
license=('GPL3')
depends=('apparmor' 'qt5-base')
optdepednds=('qt5-x11extras')
makedepends=('cmake')
source=("git+https://github.com/canonical/${_realname}.git#tag=v${pkgver}"
git+https://github.com/fmtlib/fmt.git
git+https://github.com/CanonicalLtd/grpc.git
git+https://git.tukaani.org/xz-embedded.git
git+https://github.com/CanonicalLtd/semver.git
git+https://github.com/ricab/scope_guard.git
git+https://github.com/Skycoder42/QHotkey.git
git+https://github.com/jbeder/yaml-cpp.git
)
sha256sums=(SKIP SKIP SKIP SKIP SKIP SKIP SKIP SKIP)
prepare() {
cd "${srcdir}/${_realname}"
git submodule init
### these are copied from the git submodules of the repo
git config submodule.3rd-party/fmt.url $srcdir/fmt
git config submodule.3rd-party/grpc.url $srcdir/grpc
git config submodule.3rd-party/qhotkey.url $srcdir/QHotkey
git config submodule.3rd-party/scope_guard.url $srcdir/scope_guard
git config submodule.3rd-party/semver.url $srcdir/semver
git config submodule.3rd-party/xz-decoder/xz-embedded.url $srcdir/xz-embedded
git config submodule.3rd-party/yaml-cpp.url $srcdir/yaml-cpp
git submodule update --recursive
}
build() {
mkdir -p "_build"
cd "_build"
export CXXFLAGS=-Wno-error=deprecated-declarations
cmake \
-Wno-dev \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
"${srcdir}/${_realname}"
make
}
package() {
cd "_build"
make DESTDIR="$pkgdir" install
}
|