summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorДамјан Георгиевски2020-02-25 14:22:47 +0100
committerДамјан Георгиевски2020-02-25 16:16:19 +0100
commit391456efc1a5535395838de623602710ddbac23b (patch)
tree9169078b311116b2c1696736345e055a3b8e26b8
downloadaur-391456efc1a5535395838de623602710ddbac23b.tar.gz
initial preliminary package
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD35
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..59a320d2e23
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = canonical-multipass
+ pkgdesc = Multipass is a lightweight VM manager for Linux, Windows and macOS.
+ pkgver = 1.0.2
+ pkgrel = 0.1
+ url = https://multipass.run
+ arch = x86_64
+ license = GPL3
+ makedepends = cmake
+ depends = gcc-libs
+ depends = systemd-libs
+ depends = libnsl
+ depends = qt5-base
+ source = git+https://github.com/canonical/multipass.git#tag=v1.0.2
+ sha256sums = SKIP
+
+pkgname = canonical-multipass
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9e79ba02931
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Damjan Georgievski <gdamjan@gmail.com>
+
+pkgname=canonical-multipass
+_realname=multipass
+pkgver=1.0.2
+pkgrel=0.1
+pkgdesc="Multipass is a lightweight VM manager for Linux, Windows and macOS."
+arch=('x86_64')
+url="https://multipass.run"
+license=('GPL3')
+depends=('gcc-libs' 'systemd-libs' 'libnsl' 'qt5-base')
+makedepends=('cmake')
+source=("git+https://github.com/canonical/${_realname}.git#tag=v${pkgver}")
+
+prepare() {
+ cd "${srcdir}/${_realname}"
+ git submodule sync
+ git submodule update --init --recursive
+}
+
+build() {
+ mkdir -p "_build"
+ cd "_build"
+ cmake \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ "${srcdir}/${_realname}"
+ make
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha256sums=(SKIP)