diff options
author | Melissa Nuño | 2021-01-15 05:04:47 -0700 |
---|---|---|
committer | Melissa Nuño | 2021-01-16 05:32:14 -0700 |
commit | 44e2aeccbb1937eda93410b60a4c58c606a32dc9 (patch) | |
tree | e3628b597aa6cca6fe43eb604a2b35bc5c9c7e53 | |
download | aur-44e2aeccbb1937eda93410b60a4c58c606a32dc9.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 29 |
3 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..99db0575dcd9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = vfio-kvm-git + pkgdesc = A systemd service that manages switching input devices between a VFIO host and guest + pkgver = 0.1.0.r5.g9a49779 + pkgrel = 1 + url = https://github.com/dangle/vfio-kvm + arch = any + license = MIT + makedepends = git + depends = python>=3.7 + depends = python-evdev + depends = python-dbus-next + provides = vfio-kvm + conflicts = vfio-kvm + source = git+https://github.com/dangle/vfio-kvm.git + md5sums = SKIP + +pkgname = vfio-kvm-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..e21dca31b480 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +* +*/ +!.gitignore +!PKGBUILD +!.SRCINFO diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b76f1819d4a7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Packager: Melissa Nuño +# Maintainer: Melissa Nuño + +pkgname=vfio-kvm-git +pkgver=0.1.0.r5.g9a49779 +pkgrel=1 +pkgdesc="A systemd service that manages switching input devices between a VFIO host and guest" +arch=('any') +url='https://github.com/dangle/vfio-kvm' +license=('MIT') +depends=('python>=3.7' 'python-evdev' 'python-dbus-next') +makedepends=('git') +provides=(${pkgname%-*}) +conflicts=(${pkgname%-*}) +source=('git+https://github.com/dangle/vfio-kvm.git') +md5sums=('SKIP') + +pkgver() { + cd "${pkgname%-*}" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +package() { + cd "$srcdir/${pkgname%-*}" + install -Dm644 "LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}" + install -Dm644 "config/dbus/vfio-kvm.xml" "${pkgdir}/etc/dbus-1/system.d/vfio-kvm.conf" + install -Dm644 "config/systemd/vfio-kvm.service" -t "${pkgdir}/usr/lib/systemd/system" + install -Dm755 "vfio-kvm.py" "${pkgdir}/usr/bin/vfio-kvm" +} |