summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9fa0eacad2beb63ea1a70ea281ef41dbf3bdccb6 (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
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: Mattia Borda <mattiagiovanni.borda@icloud.com>
# Contributor: Evan Bush (PencilShavings) <eb.pencilshavings@protonmail.com>

pkgname=quickemu-git
pkgver=4.9.7.r14.g3da9edc
pkgrel=2
pkgdesc="Quickly create and run optimised Windows, macOS and Linux desktop virtual machines"
arch=(any)
url="https://github.com/quickemu-project/quickemu"
license=(MIT)
depends=(qemu-desktop
         bash
         coreutils
         curl
         edk2-ovmf
         gawk
         grep
         mesa-utils # glxinfo
         jq
         pciutils
         procps
         python
         cdrtools # mkisofs
         usbutils
         util-linux
         sed
         socat
         spice-gtk # spicy
         swtpm
         xdg-user-dirs
         xorg-xrandr # xrandr
         zsync
         unzip)
makedepends=(git)
optdepends=('quickgui: graphical user interface')
provides=(quickemu)
conflicts=(quickemu)
source=("git+$url.git")
b2sums=('SKIP')

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

package() {
  cd "quickemu"
  install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"

  cd docs
  # -j1 avoid a race condition reported and confirmed on 2025-02-10
  make -j1 PREFIX=/usr DESTDIR="${pkgdir}" install
}