summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0b9e89d7b3344c789c975c1ae0e24257c481da78 (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Maintainer: bobi

pkgname=vma-git
pkgver=8.1.2
pkgrel=1
pkgdesc='Virtual Machine Archive format (VMA)'
provides=('vma')

license=('AGPL')

pveqemu='pve-qemu'

url="https://pve.proxmox.com/wiki/VMA"

dpkgdiff="dpkg.diff"

source=(
    "git://git.proxmox.com/git/${pveqemu}.git"
    "${dpkgdiff}"
    "git://git.proxmox.com/git/mirror_qemu.git"
)

makedepends=(
    'alsa-lib'
    'debhelper'
    'dpkg'
    'git'
    'libcacard'
    'libepoxy'
    'libproxmox-backup-qemu0-dev'
    'meson'
    'ninja'
    'numactl'
    'opengl-driver'
    'openssl-1.1'
    'perl-json'
    'pixman'
    'python-sphinx_rtd_theme'
    'rustup'
    'spice'
    'spice-protocol'
    'usbredir'
    'virglrenderer'
    'xfsprogs'
)

depends=(
    'ceph-libs'
    'glusterfs'
    'libaio'
    'libiscsi'
    'libproxmox-backup-qemu0'
    'liburing'
    'numactl'
    'openssl-1.1' 
)

arch=('x86_64')
sha256sums=('SKIP'
            '1918693a10e6aab959d9eb6538b87154adeb900bc9f7a8d8213f3bfdb9ef6b1f'
            'SKIP')

pkgver () {
    cd "${srcdir}/${pveqemu}"
    printf "include /usr/share/dpkg/pkg-info.mk\ndvu:\n\techo \${DEB_VERSION_UPSTREAM}\n" > DVUMakefile
    make -sfDVUMakefile dvu
}
                
build () {
    cp "${dpkgdiff}" "${srcdir}/${pveqemu}"
    cd "${srcdir}/${pveqemu}"
    
    git apply "${dpkgdiff}"
    
    make submodule

    builddir="pve-qemu-kvm-${pkgver}"
    make "${builddir}"
    cd "${builddir}"

    dpkg-source --before-build .
    fakeroot debian/rules clean
    fakeroot debian/rules build/config.status

    cd build

    ninja vma
}

package () {
    mkdir -p "${pkgdir}/usr/bin"
    cp "${srcdir}/${pveqemu}/pve-qemu-kvm-${pkgver}/build/vma" "${pkgdir}/usr/bin/"
}