summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3aeb17bed3a6068024df2195dd172edf5e41a680 (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
# Maintainer: Manuel Wiesinger <m {you know what belongs here} mmap {and here} at>

pkgname=virtme-ng-git
_srcname=virtme-ng
pkgver=v1.22.r0.gba33d94
pkgrel=3
pkgdesc="A tool that allows to easily and quickly recompile and test a Linux kernel, starting from the source code."
arch=('any')
url="https://github.com/arighi/virtme-ng"
license=('GPL-2.0-only')
makedepends=('git')
depends=('bash' 'python>=3.8' 'python-argcomplete' 'python-importlib-metadata' 'python-requests' 'python-setuptools' 'qemu>=1.6')
optdepends=('busybox: for inclusion of busybox')
conflicts=('virtme-git' 'virtme-ng')
source=("git+${url}.git")
b2sums=('SKIP')

pkgver() {
    cd "$srcdir/${_srcname}"
    git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
    cd "$srcdir/$_srcname"
    python setup.py install --root="$pkgdir/" --optimize=1
}